Skip to content
SoulFire LogoSoulFire

Encoding

Inputs, outputs, and defaults of the 6 built-in nodes in the Encoding category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

Base64 Decode

encoding.base64_decode

Decodes a Base64 string

Also called: base64, decode, decoding.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredBase64 string to decode
urlSafe (URL Safe)booleanfalseInput uses URL-safe alphabet

Outputs

PortTypeDescription
decoded (Decoded)stringDecoded string
success (Success)booleanWhether decoding succeeded

Implementation

Base64 Encode

encoding.base64_encode

Encodes a string to Base64

Also called: base64, encode, encoding.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredString to encode
urlSafe (URL Safe)booleanfalseUse URL-safe alphabet

Outputs

PortTypeDescription
encoded (Encoded)stringBase64 encoded string

Implementation

Compress/Decompress

encoding.compress

Compresses or decompresses data using GZIP

Also called: compress, gzip, decompress, zip, deflate.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredData to compress/decompress
decompress (Decompress)booleanfalseDecompress instead of compress

Outputs

PortTypeDescription
output (Output)stringCompressed (base64) or decompressed data
success (Success)booleanWhether operation succeeded
ratio (Ratio)numberCompression ratio (original/compressed)

Implementation

Decrypt

encoding.decrypt

Decrypts an AES-encrypted string

Also called: aes, cipher, decipher.

Inputs

PortTypeRequired / defaultDescription
ciphertext (Ciphertext)stringRequiredBase64-encoded encrypted data
key (Key)stringRequiredDecryption key

Outputs

PortTypeDescription
plaintext (Plaintext)stringDecrypted text
success (Success)booleanWhether decryption succeeded
errorMessage (Error Message)stringError message if failed

Implementation

Encrypt

encoding.encrypt

Encrypts a string using AES encryption

Also called: aes, cipher, secure, protection.

Inputs

PortTypeRequired / defaultDescription
plaintext (Plaintext)stringRequiredText to encrypt
key (Key)stringRequiredEncryption key (will be hashed to 256 bits)

Outputs

PortTypeDescription
ciphertext (Ciphertext)stringBase64-encoded encrypted data (includes IV)
success (Success)booleanWhether encryption succeeded
errorMessage (Error Message)stringError message if failed

Implementation

Hash

encoding.hash

Computes a cryptographic hash of the input

Also called: md5, sha, sha256, checksum, digest.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredString to hash
algorithm (Algorithm)string"SHA-256"Hash algorithm (MD5, SHA-1, SHA-256, SHA-512)
encoding (Encoding)string"hex"Output encoding (hex, base64)

Outputs

PortTypeDescription
hash (Hash)stringComputed hash
success (Success)booleanWhether hashing succeeded

Implementation

How is this page?

Last updated on