Exemplo n.º 1
0
 public static char[] GenerateKey(char[] arrayToFill)
 {
     RandomUtils.GenerateCharArrayKey(ref arrayToFill);
     return(arrayToFill);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Generates random key. Used internally and can be used to generate key for manual Encrypt() calls.
 /// </summary>
 /// <param name="arrayToFill">Preallocated char array. Only first 7 bytes are filled.</param>
 /// <returns>Key suitable for manual Encrypt() calls (arrayToFill with first 7 bytes filled).</returns>
 public static char[] GenerateKey(char[] arrayToFill)
 {
     return(RandomUtils.GenerateCharArrayKey(arrayToFill));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Generates random key. Used internally and can be used to generate key for manual Encrypt() calls.
 /// </summary>
 /// <param name="arrayToFill">Preallocated char array. Only first 7 bytes are filled.</param>
 public static void GenerateKey(ref char[] arrayToFill)
 {
     RandomUtils.GenerateCharArrayKey(ref arrayToFill);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Generates random key. Can be used to generate key for manual Encrypt() calls.
 /// </summary>
 /// <returns>Key suitable for manual Encrypt() calls (char array filled with 7 chars).</returns>
 public static char[] GenerateKey()
 {
     return(RandomUtils.GenerateCharArrayKey());
 }