Files
Walleby/Wallet/SecurityKey.cs
T
2024-06-09 14:00:36 +01:00

14 lines
359 B
C#

namespace Wallet;
public record SecurityKey(byte[] Salt, byte[] EncryptedKey, byte[] DecryptedKey) :
IDisposable
{
public void Dispose()
{
GC.SuppressFinalize(this);
Array.Clear(Salt, 0, Salt.Length);
Array.Clear(EncryptedKey, 0, EncryptedKey.Length);
Array.Clear(DecryptedKey, 0, DecryptedKey.Length);
}
}