cod/enc with keys added

combine coder and dec in 1 file