Javascript-obfuscator: Apply different ciphers to string literal encryption.

Created on 21 Sep 2017  路  3Comments  路  Source: javascript-obfuscator/javascript-obfuscator

A great update would be support for difference ciphers rather than the weak RC4 algorithm currently implemented. Such ciphers may be aes, camellia, tripledes, seed, idea etc.
I'd also suggest caching decrypted strings -- possibly in Base64 for faster retrieval -- to avoid lagging the program.

At the very least, you really should implement this:
https://github.com/ricmoo/aes-js

Great job thus far btw. This truly is an amazing tool!

future wontfix

Most helpful comment

Right now i don't see any reason to add more complex encoding, but i'll look at encoding with keys of any length with more faster decoding algorithm than in rc4.

All 3 comments

Main goal of string encoding - you need automatization to decode it. All strings will replaced on call to decode function with two parameters - decoded string and key.

Rc4 cipher very good for this task. Key length can be any size, so i use 3 or 4 chars keys.
I'll look at aes cipher, if decode function faster than rc4 and it supports keys of 3-4 chars length - i'll add it.

Decoded strings already cached.

Right now i don't see any reason to add more complex encoding, but i'll look at encoding with keys of any length with more faster decoding algorithm than in rc4.

Closed. Right now i don't see any reason to add more complex encoding

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Andrews54757 picture Andrews54757  路  6Comments

tomekmarchi picture tomekmarchi  路  6Comments

rokoroku picture rokoroku  路  4Comments

BlackYuzia picture BlackYuzia  路  6Comments

psabharwal123 picture psabharwal123  路  7Comments