예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="encoding"></param>
 /// <returns></returns>
 public static byte[] GenerateRandomPasswordBytes(Encoding encoding)
 {
     return(CryptoTransformHelpers.GenerateRandomPasswordString()
            .ToBytes(encoding));
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static byte[] GenerateRandomPasswordBytes()
 {
     return(CryptoTransformHelpers.GenerateRandomPasswordBytes(Encoding.UTF8));
 }