16 lines
336 B
Bash
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}"
|