Encryption debugged