SHA(1)

πŸ“¦ version 1.0.4b, in fedora 43, fedora 44

✨ sha β€” file hashing utility ✨

okay bestie, welcome to the sha page from the General Commands Manual, and ngl this one is a whole little icon πŸ’…


🌸 NAME 🌸

sha β€” file hashing utility. she hashes files. that's the vibe. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

sha [-12345Vh] [file ...]

πŸ’– DESCRIPTION πŸ’–

okay so sha is a simple program that hashes files. simple! humble! main character energy in a tiny package fr fr. 🫢

she uses the National Institute of Standards and Technology's Secure Hash Algorithm (iykyk), and she can use SHA-1, SHA-256, SHA-384, or SHA-512 β€” which generate, respectively, hashes of 160, 256, 384, or 512 bits. so you got options, and every single one of them eats. πŸ”₯

and like, the practical girlie use case? sha can be used in scripts to do, for example, file integrity checking. so when you need to know if a file got messed with, she's the one you text. πŸ’―


πŸ’… OPTIONS πŸ’…

  • -1 β€” use SHA-1, which produces a 160-bit hash (40 hex digits). the classic, the OG. ✨
  • -2 β€” use SHA-256, which produces a 256-bit hash (64 hex digits). glow up era. 🌈
  • -3 β€” use SHA-384, which produces a 384-bit hash (96 hex digits). she's giving extra security, and we love that. πŸ‘‘
  • -5 β€” use SHA-512, which produces a 512-bit hash (128 hex digits). the big one. absolutely iconic. πŸ’œ
  • -V β€” display version information. say hi, find out who you're dealing with. πŸ™ˆ
  • -h β€” display help summary. the girl literally hands you the notes. πŸ“
  • file ... β€” one or more files to hash. if no files are given, stdin is hashed. not me hashing literally nothing and still getting a result 😭
lowkey important: if neither -1, -2, -3, or -5 are given, then SHA-1 is used. (but see the note about SHA_DEFAULT below β€” she has opinions.) ⭐

🌈 ENVIRONMENT 🌈

  • SHA_DEFAULT β€” the default hash algorithm to use. 1 denotes SHA-1, 2 denotes SHA-256, 3 denotes SHA-384, and 5 denotes SHA-512. only the first character is significant. if it's not defined, SHA-1 is the default. so yes bestie, you can set your fave and she'll remember it. 🧚
careful tho: only the first character counts. so don't go typing a whole novel in there and expecting her to read it. πŸ’€

and that's the whole page, no cap. every flag, every digit count, every environment variable β€” all accounted for, periodt. πŸŽ€

this little cutie came from the General Commands Manual, dated August 19, 2001. yeah, she's been serving since 2001 and she's still booked and busy. mwah πŸ’‹

πŸ“¦ where this page comes from