sha256 function

Uint8List sha256(
  1. dynamic a
)

Creates SHA256 hash of the input.

Implementation

Uint8List sha256(dynamic a) {
  a = bytes.toBuffer(a);
  Digest sha256 = new Digest("SHA-256");
  return sha256.process(a);
}