diff --git a/lib/sha256.ts b/lib/sha256.ts new file mode 100644 index 0000000000..f06c173c96 --- /dev/null +++ b/lib/sha256.ts @@ -0,0 +1,10 @@ +const crypto = require('crypto'); + +function sha256(input: string): string { + return crypto + .createHash('sha256') + .update(input) + .digest("hex"); +} + +export default sha256; \ No newline at end of file