SHA(1)
β¨ 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,stdinis hashed. not me hashing literally nothing and still getting a result π
lowkey important: if neither-1,-2,-3, or-5are given, then SHA-1 is used. (but see the note aboutSHA_DEFAULTbelow β she has opinions.) β
π ENVIRONMENT π
SHA_DEFAULTβ the default hash algorithm to use.1denotes SHA-1,2denotes SHA-256,3denotes SHA-384, and5denotes 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
- fedora 43: sha 1.0.4b-28.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: sha 1.0.4b-28.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: sha 1.0.4b-29.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: sha 1.0.4b-29.fc44 Β· LicenseRef-Callaway-BSD
- Copyright (c) 2001-2003 Allan Saddi <allan@saddi.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms