hash static method

CryptoStep<Uint8List, Uint8List> hash(
  1. HashAlgorithm algorithm
)
override

Hashes bytes with one of the existing package algorithms.

Implementation

static CryptoStep<Uint8List, Uint8List> hash(HashAlgorithm algorithm) =>
    _OperationStep(
      'hash.${algorithm.name}',
      (input) => CryptoHash.hash(algorithm, input),
      _HashDescriptor(algorithm),
    );