sha256 static method

List<int> sha256(
  1. List<int> input
)

sha256 digest

Implementation

static List<int> sha256(List<int> input) {
  final algo = Digest('SHA-256');
  final hash = algo.process(Uint8List.fromList(input));
  return hash;
}