Encryption now working