Optional function to generate cryptographically secure random bytes
Decrypts data encrypted with encryptContent
with the
transit private key.
encrypted content.
the hex string of the ECDSA private key to use for decryption. If not provided, will use user's appPrivateKey.
decrypted content.
Encrypts the data provided with the app public key.
data to encrypt
Stringified ciphertext object
Calculate the base64 encoded string length for a given input length. This is equivalent to the byte length when the string is ASCII or UTF8-8 encoded.
Generated using TypeDoc
@stacks/encryption
Encryption functions used by Stacks.js packages.
Installation
Encrypt and decrypt string
Sign content using ECDSA
EncryptMnemonic and decryptMnemonic
Make EC PrivateKey
EC pair to hex string