hash static method
Performs hash operation
Implementation
static ByteArray hash(ByteArray data, [int? offset, int? length]) {
final hasher = MochimoHasher();
if (offset != null && length != null) {
hasher.update(data, offset, length);
} else {
hasher.update(data);
}
return hasher.digest();
}