added EncryptedObject to codebase, which will help in repeated tasks of serializing and encryption