Encryption now works