added encrypt/decrypt to controller
added encrypt/decrypt to controller