Encryption done - in theory.

Now only missing a way to generate public key based on private in DB.