Skip to content

Encrypt scripts #3

@Klustre

Description

@Klustre

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}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions