Encrypt/decrypt is working when keys are copied in manually