NewKey() public static method

Helper that generates a random key on each call.
public static NewKey ( ) : byte[]
return byte[]
示例#1
0
 /// ----------------------------------------------------------------------------------------
 /// <summary>
 /// Generate a Browser Exam Key Salt as byte data.
 /// </summary>
 /// ----------------------------------------------------------------------------------------
 public static byte[] GenerateBrowserExamKeySalt()
 {
     byte[] saltBytes = AESThenHMAC.NewKey();
     //string saltString = BitConverter.ToString(saltBytes);
     //return saltString.Replace("-", "");
     return(saltBytes);
 }
示例#2
0
 public static byte[] GenerateBrowserExamKeySalt()
 {
     return(AESThenHMAC.NewKey());
 }