예제 #1
0
 public static byte[] GenerateNonce()
 {
     return(SodiumCore.GetRandomBytes(24));
 }
예제 #2
0
 public static byte[] GenerateKey()
 {
     return(SodiumCore.GetRandomBytes(32));
 }
예제 #3
0
 public static byte[] ArgonGenerateSalt()
 {
     return(SodiumCore.GetRandomBytes(16));
 }
예제 #4
0
 public static byte[] GenerateNonceChaCha20()
 {
     return(SodiumCore.GetRandomBytes(8));
 }
예제 #5
0
 public static byte[] ScryptGenerateSalt()
 {
     return(SodiumCore.GetRandomBytes(32));
 }