System.Security.SecureString.Decrypt C# (CSharp) Method

Decrypt() private method

private Decrypt ( ) : void
return void
		private void Decrypt ()
		{
			if ((data != null) && (data.Length > 0)) {
				// It somehow causes nunit test breakage
				// DecryptInternal (data, scope);
			}
		}

Usage Example

Beispiel #1
0
 //todo: do not store decrypted in memory
 public void ReceiveKey(SecureString key) 
     => Password = key.Decrypt();