A Slatepencil Documentation website
a site to keep notes of things.
Stay hungry, Stay foolish |
To progress and to revive |
Efficiency: env » direction » methods » strength & courage |
Directory
Useful Sources
Miscellaneous
- To find the SHA-256 checksum
shasum -a 256 /path/to/file
# md5
md5sum /path/to/file
# sha1
## Print or check SHA1 (160-bit) checksums. With no FILE, or when FILE is -, read standard input.
sha1sum {file}
# Checksums (IEEE Ethernet CRC-32) and count the bytes in a file
cksum README.md
# intergrity
openssl dgst -sha384 -binary bootstrap.min.css | openssl base64 -A
# QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH
# <link rel="stylesheet" href="https://example.com/dependencies/bootstrap/5.3.3/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
# base64 encode file
openssl base64 -in <infile>
# decode
echo "encoded_string" | base64 --decode
Verify Checksum on Windows
certutil -hashfile example_file.txt MD5
certutil -hashfile example_file.txt SHA1
certutil -hashfile example_file.txt SHA256