@rcrsr/rill-ext-crypto
v0.18.4
Published
rill extension for cryptographic operations (hash, hmac, uuid, random)
Maintainers
Readme
@rcrsr/rill-ext-crypto
rill extension for cryptographic operations. Provides hashing, HMAC signatures, UUID generation, and random byte generation via Node.js crypto module.
Install
npm install @rcrsr/rill-ext-cryptoQuick Start
rill-config.json
{
"main": "app.rill",
"extensions": {
"mounts": {
"crypto": "@rcrsr/rill-ext-crypto"
},
"config": {
"crypto": {
"defaultAlgorithm": "sha256",
"hmacKey": "my-secret-key"
}
}
}
}app.rill
use<ext:crypto> => $crypto
$crypto.hash("hello world") -> log
$crypto.uuid() -> logrill-runDocumentation
See full documentation for configuration, functions, and error handling.
License
MIT
