/// <summary> /// Creates a hash of the string as string. /// </summary> /// <param name="Value">String to hash</param> /// <param name="Length">Length of output</param> /// <returns>Hash as string</returns> public string getHashAsString(string Value, int Length = 32) { utility.HashFunction tmp = new utility.HashFunction(Length); return(tmp.convertByteHashToString(tmp.createByteHash(Value))); }
/// <summary> /// Constructor initializes two instances of the hash algorithm in order to be able to supply multiple hash lengths. /// </summary> public Decryptor() { HashFunction32 = new utility.HashFunction(32); HashFunction256 = new utility.HashFunction(256); }