encryption now works