encryption refactoring:
- unified AES and RSA encryption and decryption
- simplified object serialization and deserialization
- redistributed encryption responsibilities