Suite.js Documentation

Introduction


Getting Started

• Downloading & Installing
• Running
Examples


Technical Support


Functions

Cryptography
• hashSHA256
• hmacSHA256
• hashSHA512
• hmacSHA512
• hashMD5
• hmacMD5

File System
fileExists
fileRead
fileWrite
folderExists
unzip
zip

Input / Output
beep
prompt
write
writeln

Networking
curlExecute
• nsapiExecute

Operating System
shellExecute

Text Encoding
base64Decode
base64Encode


Advanced Topics

Source File Encryption

Suite.js includes support for encrypted Javascript files. This gives developers the ability to encrypt their JavaScript source files, and distribute the encrypted files to their clients, who can then run them with Suite.js. With encrypted JavaScript files, the source code is never exposed, which protects the developer's intellectual property and their client's credentials.

To encrypt a source file, you run Suite.js, specify the file to be encrypted, add a "-encrypt" command line argument, and then specify a secret key value.

For example:

./suitejs sourcefile.js -encrypt secretkey

Suite.js will generate an encrypted file with the name:
sourcefile.encrypted.js

Before generating an encrypted file, Suite.js loads any included files.

To run an encrypted file, you run Suite.js as you normally would, specify the path to the encrypted file, and also specify the key that was used to encrypt the file.

To continue with the example from above, to run the encrypted file, you'd do this:

./suitejs sourcefile.encrypted.js secretkey

To encrypt source files, Suite.js uses an algorithm based on the AES-256 symmetric encryption standard. During the source file encryption process, Suite.js automatically loads and encrypts any files referenced using the include function.

© Copyright 2025 Tim Dietrich. | Legal Info