SHA1 for deno
.
import { sha1 } from "https://denopkg.com/chiefbiiko/sha1/mod.ts";
console.log('SHA1 of ""', sha1("", "utf8", "hex"))
Creates a new SHA1 instance.
Initializes a hash instance.
Updates a hash with additional data. inputEncoding
can be one of "utf8"
, "hex"
, or "base64"
.
Obtain a digest of all the fed-in messages. outputEncoding
can be one of "utf8"
, "hex"
, or "base64"
. If it is omitted a Uint8Array
gets returned.
Convenience function for hashing singular data.