encrypt/decrypt almost work