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