bunch of fixes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public class KeyGenerator :
|
||||
IKeyGenerator
|
||||
{
|
||||
public byte[] Generate(int size)
|
||||
{
|
||||
byte[] key = new byte[size];
|
||||
RandomNumberGenerator.Fill(key);
|
||||
|
||||
return key;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user