sake-js
JavaScript encryption
garbage string code in dizzying javascript
install
npm install sake-js
browser
<script src="https://cdn.jsdelivr.net/npm/sake-js@1.0.9/browser/index.js"></script>
usage
let SakeJS = require('sake-js')
let text = `
function main(t){
console.log(t)
}
main("hello world!!")
`
let res = SakeJS.obfuscate(text)
console.log(res)
options
type options = {
random: boolean
custom: string
}
use options
let SakeJS = require('sake-js')
let text = `
function main(t){
console.log(t)
}
main("hello world!!")
`
let res = SakeJS.obfuscate(text, {random: true})
let res = SakeJS.obfuscate(text, {custom: '〆〇〡〢〣〤ㄍㄑ〳ヽ〴丿乀乁乂〸ㆺ〻ミ'})
Get more custom Words
https://nuojs.github.io/sake-js/words.html
Note: Not support strict mode
<script type="module">
</script>
<script type="text/javascript">
(function(){[〆,〤〤,〤〣,〤〳,〤ヽ,,〤〴,〤ㄍ,〤乂,〤〸,,,,〤,,〤乁]="."+{},〴=[],[,〤〢,〤丿,〤ㄑ,〤〡,〤乀,〤〻,〤ㆺ,,,〤〇,〤ミ,,,〤〆]=[!!〤〴]+!〤〴+〤〴.〤〴,[,,,,,,,,,〣〤,,,,,〣〣]=〆[〤+=〤〣+〤〇+〤ㆺ+〤ㄍ+〤〢+〤丿+〤〴+〤ㄍ+〤〣+〤〢]+〴,[,,,,,,,,乂,,,,,〣ㄑ,〣〴,,〣〳,,,,,,,〣〻,,,,,,,,,〣ヽ]=[][〤〡+〤〆+〤〻+〤〻]+〴,ヽ=[〤ㄍ+〤〣+〣〤+〤ㄍ+〤〢+〤〆+〤〇+〣〣],[〸,,乁,,〢,,丿,,〡,,乀,,〻,,ㆺ,,〇,,ミ]=[+乂,++乂,++乂,++乂,++乂,++乂,++乂,++乂,++乂,++乂]+〴,〣=〴[〤][〤],〳=〣(〤ㄑ,〤〢+〤ㄑ+〤ㄍ+〤丿+〤〢+〤〇+〤乂+〤ㄑ+〆+〤ㄍ+〤〣+〣〤+〤ㄍ+〤〢+〤〆+〤〇+〣〣+〣ㄑ+丿+〻+〣〴),[〣乁,〣ㆺ,〣〢,〣丿,〣〸]=[〳(+[〢+乀]),〳(+[乁+ㆺ]),〳(+[〢+〢]),〳(+[〢+〸]),〳(+[丿+〡])],[〣ㄍ,,〣乀,,,,〣乂,,,,〣〡]=〣(〤〢+〤ㄑ+〤ㄍ+〤丿+〤〢+〤〇+〤乂+〤ㄑ+〤ㆺ+〤〴+〤乀+〣乁+〤ㄑ)()((〴+〴)[〤〆+〤ㄍ+〤乀+〤〻+〤〆+〤〴+〤ㆺ]()),ㄍ=〣(〤ㄑ,〤〢+〤ㄑ+〤ㄍ+〤丿+〤〢+〤〇+〤乂+〣〤+〤ㄍ+〤〢+〤〆+〤〇+〣〣+〆+〤〡+〤〢+〤〣+〣〢+〣乀+〣ㆺ+〤乀+〤〢+〣乀+〤〣+〤ミ+〤ㄑ+〣ㄑ+〤ㄑ+〣〴),[〣〇,〣ミ,〣〆,〳〤,〳〣,〳〳,〳ヽ,〳ㄑ,〳〴]=[ㄍ(+[〡+丿]),ㄍ(+[〡+〡]),ㄍ(+[乁+〢+〸]),ㄍ(+[〻+乁]),ㄍ(+[乀+ミ]),ㄍ(+[〻+〢]),ㄍ(+[乁+乁+ミ]),ㄍ(+[丿+〡]),ㄍ(+[丿+丿])],〣(〤ㄑ,〤〢+〤ㄑ+〤ㄍ+〤丿+〤〢+〤〇+〤乂+〤ㄑ+〣〻+〤乀+〤〻+〣ㄑ+〤ㄑ+〣〻+〤乀+〤〻+〣ㄑ+〤ㄑ+〣〴+〣〴)("〤乂,〤乂,〤〡,〤丿,〤〇,〤〴,〤ㄍ,〤〆,〤〣,〤〇,〤乂,〤〢,〤ㄑ,〣〢,〤〣,〣〻,〤ㄑ,〣ㄑ,〤ㄍ,〤ㄑ,〣〆,〤ㄍ,〣〴,〣〳,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤〻,〤ㄑ,〤ㄍ,〤乂,〤〣,〤〳,〤ヽ,〤乂,〳〤,〤乂,〣〳,〣ヽ,〳〣,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤〤,〆,〆,〆,〤ㄍ,〤ㄑ,〣〆,〤ㄍ,〤乁,〆,〤〡,〤〣,〤〢,〣乂,〤乀,〤〴,〣ㆺ,〣ㄑ,〤ㄑ,〤乂,〳〤,〳〳,〤乂,〤〣,〤〳,〤ヽ,〤〤,〤ㄑ,〤乁,〤乂,〳〤,〤乂,〣〳,〣ヽ,〣〴,〳〣,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤〸,〤〳,〤ヽ,〤ㄑ,〤〴,〤ㄍ,〆,〣丿,〤ㄑ,〣〸,〤ㆺ,〣ㄑ,〤〣,〤〳,〤ヽ,〣〴,〆,〤〡,〤〣,〤〢,〣乂,〤乀,〤〴,〣ㆺ,〣ㄑ,〤ㄑ,〤乂,〳〤,〳〳,〤乂,〣〳,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤ㄍ,〤〢,〣〸,〣〳,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤ミ,〤ㄑ,〤〻,〤ㄑ,〤ㄍ,〤ㄑ,〤乂,〳ヽ,〤〆,〤〇,〤ミ,〤〣,〳ヽ,〤〤,〤ㄑ,〤乁,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〣ヽ,〤〴,〤乀,〤ㄍ,〤〴,〣ㆺ,〣ㄑ,〤ㄑ,〤〢,〣〴,〣〳,〣ヽ,〤乂,〤乂,〤乂,〤乂,〤乂,〤乂,〣ヽ,〣〴,〤乂,〤乂,〣ヽ,〤乂,〤乂,〤〻,〤ㄑ,〤ㄍ,〤乂,〤ㄍ,〤ㄑ,〣〆,〤ㄍ,〤乂,〳〤,〤乂,〤乀,〤〢,〣〣,〤丿,〣〢,〤ㄑ,〤〇,〤ㄍ,〤ㆺ,〆,〤〴,〤乀,〤〻,〤〻,〤ㄑ,〤ㄑ,〆,〤〴,〤乀,〤〻,〤〻,〤ㄑ,〤〢,〆,〤ㄍ,〤〣,〣〤,〤ㄍ,〤〢,〤〆,〤〇,〣〣,〣ㄑ,〣〴,〳〣,〤乂,〤乂,〤〢,〤ㄑ,〣〢,〤〣,〣〻,〤ㄑ,〣ㄑ,〤ㄍ,〤ㄑ,〣〆,〤ㄍ,〣〴,〳〣,〤乂,〤乂,〤〡,〤丿,〤〇,〤〴,〤ㄍ,〤〆,〤〣,〤〇,〤乂,〣〢,〤乀,〤〆,〤〇,〣ㄑ,〤ㄍ,〣〴,〣〳,〤乂,〤乂,〤乂,〤乂,〤〴,〤〣,〤〇,〤ㆺ,〤〣,〤〻,〤ㄑ,〆,〤〻,〤〣,〣〣,〣ㄑ,〤ㄍ,〣〴,〣ヽ,〣〢,〤乀,〤〆,〤〇,〣ㄑ,〳ㄑ,〣ㆺ,〤ㄑ,〤〻,〤〻,〤〣,〤乂,〳ヽ,〤〣,〤〢,〤〻,〤ミ,〳〴,〳〴,〳ㄑ,〣〴,〤乂,〳〣"[〤ㆺ+〣乁+〤〻+〤〆+〤ㄍ](〣ミ)[〤ヽ+〤〣+〤〆+〤〇](〣〇)),ㄍ,[〤ㆺ,〤乀,〣丿,〤ㄑ,,〤ヽ,〤ㆺ]+ㄍ(〤〢)})()
</script>