Initial version of encryption working

Signed-off-by: Fady Matar <fady.matar@gmail.com>