Files
Walleby/Bitvault/VaultKey.cs
T
2024-05-02 23:07:47 +01:00

14 lines
358 B
C#

namespace Bitvault;
public record VaultKey(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);
}
}