proper encrypting