hashed
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hashed [2025/05/20 12:27] – usera | hashed [2025/05/20 12:38] (current) – usera | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| The idea is that it should be relatively easy to apply the hash function, but impossible to do the reverse operation. It is used in many situations. On websites and applications, | The idea is that it should be relatively easy to apply the hash function, but impossible to do the reverse operation. It is used in many situations. On websites and applications, | ||
| - | you can see popular hash function, SHA256, in action here: https:// | + | you can see a popular hash function, SHA256, in action here: https:// |
| Notice that if you change one character of the input, this changes radically the output. This is an important property of hash functions | Notice that if you change one character of the input, this changes radically the output. This is an important property of hash functions | ||
| + | |||
| + | Keeping as an example the hash function SHA256, which will be the one you want almost all the time, to compute the hash function of a file, in Linux you can enter: | ||
| + | < | ||
| + | sha256sum [filename] | ||
| + | </ | ||
| + | |||
| + | on windows it would be: | ||
| + | < | ||
| + | certutil -hashfile [filename] SHA256 | ||
| + | </ | ||
| + | |||
| + | and on MacOS: | ||
| + | < | ||
| + | shasum -a 256 [filename] | ||
| + | </ | ||
hashed.1747744034.txt.gz · Last modified: by usera
