write is encrypting.