Install the complete package with local command reference and every published mode.
install hashhashWhen you download an update or move a file between servers, a digest helps check whether the bytes are the same.
Choose -a to use another algorithm available in PHP, or -b to display Base64 instead of hexadecimal. Use
A plain
hash [<file>|-s "<text>"] [-a <algo>] [-h|-K <file>] [-b] · hash -c <digest> <file> [-b]hashlist available hashing algorithms
hash <file>calculate a SHA-256 file
hash -s "<text>"calculate a string
hash <file> -a sha512select another algorithm
hash <file> -hcalculate HMAC with a hidden key prompt
hash <file> -K <keyfile>calculate HMAC with a key file
hash -c <digest> <file>verify a hexadecimal digest
hash -c <digest> <file> -bverify or print Base64 instead of hexadecimal
-boutput Base64 rather than hexadecimal
Minimum supports hashing one file or a text string; algorithm selection, verification and HMAC need Base.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install hashInstall the reduced package. Local reference is omitted;
install hash -mInstall exactly this published version.
install hash -v 1.1.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade hashRemove the extension block while leaving the core and unrelated modules intact.
install hash -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
hashAvailable algorithms depend on the PHP server. Example excerpt:
adler32 haval128,5 haval256,5 sha1 snefru256
crc32 haval160,3 joaat sha3-224 tiger128,3
crc32b haval160,4 md2 sha3-256 tiger128,4
crc32c haval160,5 md4 sha3-384 tiger160,3
…hash \sandbox/feed.xmlfecb9e779e2de5637918deca5ea1bfde9059833a67ed38146e3360944bc06000hash -s "HELLO WORLD!"bf96648169ba89c284b3e94108074c7d5e5806c7b9498031aceded5ca139ed69hash \sandbox/feed.xml -a sha512b1326264154960b4eb6fb685521ac40de967749c9dd11cc00da69e2d8f2a88b969ecef723d9da4c86945ad407571ec62e3e9cc12bcb2070a0f1e14802ffe5fc3hash \sandbox/feed.xml -b/sued54t5WN5GN7KXqG/3pBZgzpn7TgUbjNglEvAYAA=hash -s "hello" -a sha512 -bm3HSJL1i83hdltRq0+o9czGb+8KJDKra4t/3JRlnPKcjI8PZm6XBHXx6zG4UuMXaDEZjR1wuXDre9G9zvN7AQw==hash \sandbox/feed.xml -K \sandbox/keys/hash.key09ada086ae48552d1f2c31e2339694927d88b4510e4de75d5099980deb77398bhash -s "hello" -K \sandbox/keys/hash.keyfe8e9832244f6150d4d9655df350647f8efff014774fe0f2b10d1a7fcec449cehash \sandbox/feed.xml -hA hidden password or key prompt opens. The secret is not echoed.hash -c fecb9e779e2de5637918deca5ea1bfde9059833a67ed38146e3360944bc06000 \sandbox/feed.xmlStatus Verified
Algorithm sha256hash -c /sued54t5WN5GN7KXqG/3pBZgzpn7TgUbjNglEvAYAA= \sandbox/feed.xml -bStatus Verified
Algorithm sha256hash -c 0000000000000000000000000000000000000000000000000000000000000000 \sandbox/feed.xmlHash mismatchhash -c 1234 \sandbox/feed.xmlInvalid hexadecimal digesthash \sandbox/missing.txtFile not foundhash \sandbox/feed.xml -a invalidHash algorithm is unavailablehash \sandbox/feed.xml -K \sandbox/keys/missing.keyKey file is not readablehash -s "hello" -hA hidden password or key prompt opens. The secret is not echoed.hash \sandbox/feed.xml -zUnknown optionsandbox/data/sample.txtThe example uses a file or directory from the protected /sandbox/ documentation workspace.
lil-terminal sandbox text file
This file is safe to read, copy, rename, replace, hash and archive.
Typing