OpenSSL 3 · Converting, hashing and encrypting

Hash a file

Print the SHA-256 digest of a file.

openssl dgst -sha256 file.txt

Official OpenSSL 3 documentation

More converting, hashing and encrypting commands

All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet

Was this page helpful?