Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Returns the hash of specified file.

string myFiles.Hash(id: string, hash: ( "SHA1" | "SHA256" | "SHA384" | "SHA512" | "MD5" ))

Arguments

string id
Id number of file to calculate hash
( "SHA1" | "SHA256" | "SHA384" | "SHA512" | "MD5" ) hash
Name of hash algorithm.

Returns

Calculated hash value of file.

Remarks

Please do not use MD5 hash algorithm unless is required, MD5 is considered as weak algorithm and easily cracked.