Other than using Text.sha256 to hash a String there’s no other cryptographic primitives in Daml and it’s best to rely on Daml’s built in signatory functionality. Do you have a specific usecase where you’re trying to do this?
Text.sha256
String