Vectrune Crypto
Encrypt and decrypt selected fields, fingerprint text, generate tokens, and verify HMAC tags in native Rune apps.
Install and approve
Use Vectrune 0.3.14 or newer on macOS or Linux. For field encryption and decryption, install the release requirements in a Python 3.11+ virtual environment and configure its interpreter.
vectrune deps add https://github.com/davethomas11/vectrune-crypto.git --name crypto --tag v0.2.0vectrune deps updatevectrune native approve crypto LIBRARY
Configure a provider
import "pkg:crypto"@Cryptographer/samplesprovider = localpython = $VECTRUNE_CRYPTO_PYTHON$public_key_file = $VECTRUNE_CRYPTO_PUBLIC_KEY$
For AWS, set provider to aws_kms and configure kms_key_id. The provider uses the AWS credential chain and accepts an optional aws_role_arn.
Encrypt selected fields
envelope = crypto.encrypt samples selectedPass an object of strings. The result includes base64-encoded AWS Encryption SDK envelopes and the key metadata needed to decrypt them.
Native primitives
These actions run without Python. Use @Crypto/tools for fingerprints and tokens. Use a named @Crypto binding with a key_file for HMAC.
digest = crypto.sha256 tools messagetoken = crypto.random_token tools sizetag = crypto.hmac_sha256 signingKey messagevalid = crypto.verify_hmac_sha256 signingKey proof
Pass message, tag for verification. The action returns a boolean.
AWS KMS decryption
fields = crypto.decrypt consumer envelopeUse an aws_kms binding and pass the full envelope. The consumer needs kms:Decrypt on its configured wrapping key and the same key labels and encryption contexts as the producer.