Just run echo -n any string | shasum -a 256 | awk '{ print $1 }'
Fin.
Note
AWK are not acronym of awkward but it's acronym of the family names ...
For further actions, you may consider blocking this person and/or reporting abuse
Just something to be aware of. echo will include a terminal new line character at the end of your string without the -n flag.