Two tests for encryption, one using string functions, still have some leaks but they both pass. Also fixed an initialisation bug with converting string to rsa key.