Skip to content

Instantly share code, notes, and snippets.

View brandoningli's full-sized avatar

Brandon Ingli brandoningli

View GitHub Profile
@KEINOS
KEINOS / md5.gs
Last active March 20, 2024 04:05
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 )`