Skip to content

Instantly share code, notes, and snippets.

@ilyakam
Last active November 10, 2019 08:31
Show Gist options
  • Select an option

  • Save ilyakam/cdb846e6f5eac941b563705be4762453 to your computer and use it in GitHub Desktop.

Select an option

Save ilyakam/cdb846e6f5eac941b563705be4762453 to your computer and use it in GitHub Desktop.
Obfuscated Source Code Experiment - Boilerplate
const SimpleCrypto = require('simple-crypto-js').default;
const secret = 'hunter2';
const simpleCrypto = new SimpleCrypto(secret);
const secretFunction = // anything
const encryptedCode = simpleCrypto.encrypt(secretFunction.toString());
console.info('Update the value of `encryptedCode` on the serverless platform:')
console.info(encryptedCode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment