Files
zotp-bash/genhash-multiline.sh
2026-06-06 21:36:42 +02:00

16 lines
336 B
Bash

#!/bin/bash
## zOTP Bash Example for Function genHash - Calculate a SHA512 Hash using a multiline string of text
declare thesalt="zOTP by Ze'ev Schurmann"
source zotp.inc.sh
variablename="$(genHash "
This is the first line of text.
This is the second line of text.
This is the third line of text.
" sha512)"
echo "${variablename}"