encryption now working