checkhash method

bool checkhash({
  1. required Uint8List plain,
  2. required Uint8List hashed,
})

Check hashed against plain

Implementation

bool checkhash({required Uint8List plain, required Uint8List hashed}) {
  var newhash = hash(inp: plain);
  return newhash == hashed;
}