Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt scripts #3

Open
Klustre opened this issue Aug 8, 2024 · 0 comments
Open

Encrypt scripts #3

Klustre opened this issue Aug 8, 2024 · 0 comments

Comments

@Klustre
Copy link
Collaborator

Klustre commented Aug 8, 2024

Send script and encrypt. Save alongside a saved script or otherwise prompt for an output path.

For now, send this snippet to Cavalry. Make sure to change the inputPath and outputPath.

const inputPath = '/absolute/path/to/file.js'
const outputPath = '/absolute/path/to/outfile.jsc'
const content = api.readFromFile(inputPath)
const encrypted = api.encrypt(content)
const success = api.writeToFile(outputPath, encrypted, true)
console.log(JSON.stringify({success}))
@Klustre Klustre self-assigned this Aug 8, 2024
@Klustre Klustre removed their assignment Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant