sha256fromHex function

String sha256fromHex(
  1. String hex
)

Implementation

String sha256fromHex(String hex) {
  var hashed = SHA256Digest().process(hex.toUint8List());
  return dynamicToString(hashed);
}