Encryption works but keys need some further studying