Skip to main content

Module Encrypt

Module Encrypt 

Source
Expand description

encryption:encrypt(value: string) -> string

Encrypts a plaintext string with AES-256-GCM and returns a base64-encoded <12-byte nonce><ciphertext+tag> blob that encryption:decrypt can reverse. Called by VS Code’s EncryptionMainService to store extension secrets and auth tokens safely at rest.

Functions§

Fn