Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Last active October 23, 2017 08:58
Show Gist options
  • Save bgadrian/530251c4908b9db6dc4881f81eed5f0a to your computer and use it in GitHub Desktop.
Save bgadrian/530251c4908b9db6dc4881f81eed5f0a to your computer and use it in GitHub Desktop.
Encoding, Encryption, Hashing, Minification, Obfuscation for https://coder.today/encoding-in-web-development-why-how-url-json-base64-beyond-12561b16b1fc
"the letters "a" and "b" (lowercase) in different character formats:
A_HTML_ENTITY="a"
A_ASCII_DECIMAL=97
B_HTML_ENTITY="b"
B_ASCII_DECIMAL=98
#the strings "a" and "b" encoded in base64
A_BASE64="YQ=="
B_BASE64="Yg=="
#"a" and "b" encrypted with the Blowfish algorithm (password "aaaa") in hexa
A_BLOWFISH="c2d15a8c28974fa4"
B_BLOWFISH="3ab5ddc554b398b6"
#"a" and "b" using SHA256 hasing algorithm (one way)
A_SHA256="ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb"
B_SHA256="3e23e8160039594a33894f6564e1b1348bbd7a0088d42c4acb73eeaed59c009d"
//original code
const text = "alfa"
console.log(text)
//minified code
const text="alfa";console.log(text);
//original code
const text = "alfa"
console.log(text)
//obfuscated code
var _0x8f8d=["\x61\x6C\x66\x61","\x6C\x6F\x67"];const text=_0x8f8d[0];console[_0x8f8d[1]](text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment