/// <summary> /// Constructor using designated hash algorithm and assigned origin byte array. /// </summary> /// <param name="hashAlgorithmType">Designated hash algorithm type.</param> /// <param name="originBytes">Origin byte array.</param> /// <param name="saltBytes">Salt byte array.</param> public ZHash(ZHashAlgorithmType hashAlgorithmType, byte[] originBytes, byte[] saltBytes) { OriginBytes = originBytes; Salt = saltBytes; SetHashAlgorithm(hashAlgorithmType); }
/// <summary> /// Constructor using designated hash algorithm and assigned origin string with salt string. /// </summary> /// <param name="hashAlgorithmType">Designated hash algorithm type.</param> /// <param name="originString">Origin string.</param> /// <param name="saltString">Salt string.</param> public ZHash(ZHashAlgorithmType hashAlgorithmType, string originString, string saltString) { OriginString = originString; SaltString = saltString; SetHashAlgorithm(hashAlgorithmType); }
/// <summary> /// Constructor using designated hash algorithm. /// </summary> /// <param name="hashAlgorithmType">Designated hash algorithm type.</param> public ZHash(ZHashAlgorithmType hashAlgorithmType) { SetHashAlgorithm(hashAlgorithmType); }