Brunet.Security.SymmetricEncryption.Clear C# (CSharp) Method

Clear() public method

When we're done using this, it is safest to clear all security bits from memory. That's what this does.
public Clear ( ) : void
return void
    public void Clear() {
      _sa.Clear();
    }
  }

Usage Example

Example #1
0
 /// <summary>When this is done being used, this should be closed for
 /// security purposes.</summary>
 public void Close()
 {
     if (_closed)
     {
         return;
     }
     _closed = true;
     _encryptor.Clear();
     _decryptor.Clear();
     _outgoing_auth.Clear();
     _incoming_auth.Clear();
 }