The crypto aes library - pf-lang/pipefish GitHub Wiki

Types

AesEncode = struct (key string, plaintext string) :

Contains the data to pass to get ... from.

The key field must be the AES key, either 16, 24, or 32 characters to select AES-128, AES-192, or AES-256.

Commands

get(ciphertext ref) from (a AesEncode) :

Sets the reference variable to the result of encoding the plaintext field of a.

Functions

decode(key string, ciphertext string) -> string / error :

Decodes the ciphertext using the key supplied, returning the recovered plaintext if the decoding works and an error otherwise.

Notes

This page is automatically generated from the Pipefish standard library. Any edits made directly to this wiki page will be overwritten the next time the documentation is regenerated.

⚠️ **GitHub.com Fallback** ⚠️