Skip to content

Instantly share code, notes, and snippets.


Curtis Doty dotysan

View GitHub Profile
dotysan /
Last active May 20, 2021 — forked from KEINOS/
GAS(Google Apps Script) user function to get MD5 hash or 4digit shortened hash for Multibyte(UTF-8, 2bytes character) environment.
* ------------------------------------------
* MD5 function for GAS(GoogleAppsScript)
* You can get a MD5 hash value and even a 4digit short Hash value of a string.
* ------------------------------------------
* Usage1:
* `=MD5("YourStringToHash")`
* or
* `=MD5( A1 )` with the same string at A1 cell
# Copyright (C) 2013 Vinay Sajip. New BSD License.
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve