Encryption testing code