SHA-1

var sha = frequire('Digest::SHA')
say sha.sha1_hex('Rosetta Code')

Output:

48c98f7e5a6e736d790ab740dfc3f51a61abe2b5