finished encryptor, working on database