Very Important Questions
Please review the extensive release notes.
First, place the contents of this repository inside your project's node_modules/ directory.
// require the module var scrambler = require('genius-defender'); // scramble a string containing Unicode text characters var scrambled_text = scrambler.string(text);
- It obviously still requires UTF-8 text encoding in order to inject the extra characters, but it does not actually verify the encoding before processing the input, because that would add an unnecessary dependency. There are a number of modules you can use to implement that check yourself if desired.
For now, this is provided as a simple CommonJS module intended for Node because it's better to do the text obfuscation server-side instead of client-side, but it may be converted to an ES6 module in the future.