예제 #1
0
 public static byte CreateRandomByte()
 {
     return(BaseFunctions.secureRandom(1)[0]);
 }
예제 #2
0
 /// <summary>
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public static string createStringHash(byte[] data)
 {
     return(BaseFunctions.convertByteArrayToString(createBinaryHash(data)));
 }
 public static string createStringHash(string data)
 {
     return(BaseFunctions.convertByteArrayToString(HashBaseFunction.createBinaryHash(BaseFunctions.convertStringToByteArray(data))));
 }
예제 #4
0
 /// <summary>
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public static byte[] createBinaryHash(string data)
 {
     return(createBinaryHash(BaseFunctions.convertStringToByteArray(data)));
 }