Bash - Create a SHA1 digest of a file

# @param String $filename the filename for which you want to know/generate it's sha1 # function sha1() { if [[ -n $(which openssl) ]]; then openssl sha1 $@ else echo "openssl is required, but not installed" fi }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.