Skip to content

Scheduling infrastructure for absolutely everyone.

Implemented SHA256 hash helper function

nicolasa5e750eae752
diff --git a/lib/sha256.ts b/lib/sha256.ts
new file mode 100644
index 00000000000..f06c173c96a
--- /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