Adding encryption functionality

need to fix decryption.
added empty constructor for crypto, because its nice to have for my
purpose.