Last active
October 23, 2017 08:58
-
-
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
This file contains hidden or 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
"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" |
This file contains hidden or 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
//original code | |
const text = "alfa" | |
console.log(text) | |
//minified code | |
const text="alfa";console.log(text); |
This file contains hidden or 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
//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