How can I calculate the hash code of MD5 or SHA1 in a list of cells? For example, I have 100 email addresses in column A row 1-100, and I want to encrypt them. I would like to write encrypted letters in column B next to each decrypted email address. What is the best way to do this?
I read the answer here , but it definitely doesn't work
I have minimal experience with Google spreadsheets: - (
I started by using this script, but could only encrypt one email at a time
function MD5 (input) {
var rawHash = Utilities.computeDigest(Utilities.DigestAlgorithm.MD5, input);
var txtHash = '';
for (i = 0; i < rawHash.length; i++) {
var hashVal = rawHash[i];
if (hashVal < 0) {
hashVal += 256;
}
if (hashVal.toString(16).length == 1) {
txtHash += '0';
}
txtHash += hashVal.toString(16);
}
return txtHash;
}
user6002037
source
share