Hash SHA-256

Generate a SHA-256 hash of a string.

Code

Utilities
echo -n "$str" | sha256sum | cut -d' ' -f1

Parameters

String to hash.

Server

More Bash Snippets