FInished writing encrypted data