Last active
December 16, 2024 09:04
-
-
Save rcknr/ad7d4623b0a2d90415323f96e634cdee to your computer and use it in GitHub Desktop.
MD5 Hash in Google Apps Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function md5(inputString) { | |
return Utilities.computeDigest(Utilities.DigestAlgorithm.MD5, inputString) | |
.reduce((output, byte) => output + (byte & 255).toString(16).padStart(2, '0'), ''); | |
} |
This is gold thanks 👍
Really useful thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Neat, thanks. Fixed the variable names ^