HASH(1)

πŸ“¦
version 1045 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

πŸŽ€ HASH(1) β€” like, the hash page, bestie πŸ’…

okay so this is HASH(1) from the User Commands corner of your manual, and we're gonna get you fluent in it, fr fr. πŸ¦‹


✨ NAME ✨

hash β€” runs TPM2_Hash πŸ‘‘


🌸 DESCRIPTION 🌸

First things first, bestie, and I need you to hear me on this one: --version-string=v1045 is not a valid option. Not it. Not the vibe. Do not pass go. 😭

hash

Runs TPM2_Hash. That's the whole assignment. That's the moment. πŸ’–

-hi hierarchy (e, o, p, n) (default null)

  • e endorsement
  • o owner
  • p platform
  • n null

then, all together now:

[-halg (sha1, sha256, sha384) (default sha256)] -if input file to be hashed -ic data string to be hashed [-oh hash file name (default do not save)] [-tk ticket file name (default do not save)]

so to be super clear about that lineup, since the way it's written is giving ✨squished✨:

  • [-halg (sha1, sha256, sha384) (default sha256)] β€” pick your hash algo, default is sha256
  • -if β€” input file to be hashed
  • -ic β€” data string to be hashed
  • [-oh hash file name (default do not save)] β€” where to save the hash, default is do not save
  • [-tk ticket file name (default do not save)] β€” where to save the ticket, default is do not save

and now… the plot twist. 🫣 Because:

--version is not a valid option. bestie. it's giving "did not read the manual." πŸ’€

so here we go again, same energy, same everything:

hash

Runs TPM2_Hash. 🫢

-hi hierarchy (e, o, p, n) (default null)

  • e endorsement
  • o owner
  • p platform
  • n null

and the rest, exactly as written:

[-halg (sha1, sha256, sha384) (default sha256)] -if input file to be hashed -ic data string to be hashed [-oh hash file name (default do not save)] [-tk ticket file name (default do not save)]
πŸ’‘ reminder bestie: -hi hierarchy is e, o, p, n and it defaults to null. -halg takes sha1, sha256 or sha384 and defaults to sha256. -oh and -tk both default to not saving. no cap. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

the full documentation for hash is maintained as a Texinfo manual. if the info and hash programs are properly installed at your site, the command

info hash

should give you access to the complete manual. go read it, it's iconic, iykyk πŸ“šβœ¨


signed off with love β€” hash, July 2017, and yeah it's still filed under HASH(1) in the User Commands section πŸ’œπŸŒˆπŸ’… periodt.

πŸ“¦ where this page comes from