v2026.6.4
All Bundles
Bundle Cryptographic utilities including AES-256 encryption/decryption, SHA-1/256/512 and MD5 hashing, HMAC signing, and Base64 encoding/decoding. Compile with -lib cipher.

Decrypt

Decrypts data

Operations

AES256 # function

Decrypts input using AES-256

function : AES256(key:Byte[], stream_in:Byte[]) ~ Byte[]

Parameters

NameTypeDescription
keyByteencryption key
stream_inBytebytes to decrypted

Return

TypeDescription
Bytedecrypted bytes

Example

key := "mysecretkey123456789012345678901"->ToByteArray(); # 32 bytes
plain := "Hello World"->ToByteArray();
cipher := Cipher.Encrypt->AES256(key, plain);
result := Cipher.Decrypt->AES256(key, cipher); # recover original
result->ToString()->PrintLine();

Base64 # native

Decrypts input using Base64

function : native : Base64(input:String) ~ Byte[]

Parameters

NameTypeDescription
inputStringinput bytes to decrypted

Return

TypeDescription
Bytedecrypted bytes

Example

encoded := Cipher.Encrypt->Base64("Hello World"->ToByteArray());
decoded := Cipher.Decrypt->Base64(encoded); # decode from Base64
decoded->ToString()->PrintLine();