Synapse
Compatibility functions enabled by the Synapse setting.
Functions
syn.create_secure_functionA compatibility placeholder for code that checks for a Synapse-style secure-function helper. Kawaii accepts the call but does not create or wrap a function.
syn.crypt.custom.decryptDecrypt a Base64 value produced by syn.crypt.custom.encrypt. Match its cipher, key, and IV exactly; this function does not infer them from the ciphertext.
syn.crypt.custom.encryptEncrypt bytes with a named cipher and key/IV bytes supplied by the caller. Use this when you need to match an existing cipher format rather than Kawaii’s default syn.crypt envelope.
syn.crypt.custom.hashCompute a digest using the algorithm named by the caller. This is useful when a file format or another system already specifies which hash to use.
syn.crypt.decryptOpen an envelope produced by syn.crypt.encrypt. It checks the envelope and authentication tag before returning the original bytes.
syn.crypt.deriveDerive a fixed-length byte string from input material with Kawaii’s HKDF-SHA-256 scheme. This is useful when one input secret must be turned into a reproducible byte sequence of a specific length.
syn.crypt.encryptEncrypt bytes in Kawaii’s versioned Synapse-compatible envelope. This is useful when a script already uses syn.crypt and needs a ciphertext that its matching decrypt call can read.
syn.crypt.hashCompute a fixed SHA-384 digest for a byte string. It is a quick way to compare content fingerprints when a script uses the Synapse crypto namespace.
syn.crypt.randomGet raw random bytes through the optional Synapse crypto namespace. Choose this when a consumer needs binary bytes rather than printable text.
syn.is_betaRead the beta flag exposed by Kawaii’s optional Synapse compatibility table. Scripts sometimes use this flag to choose a compatibility path.