Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/Encryption/
mod.rs

1#![allow(non_snake_case)]
2
3//! Encryption handlers for VS Code's `IEncryptionService` channel.
4//! `encryption:encrypt` and `encryption:decrypt` are called by the
5//! workbench to store and retrieve secrets (extension secrets, auth tokens,
6//! GitHub Copilot key, etc.). We use AES-256-GCM via the `ring` crate;
7//! the 256-bit key is derived once per process from the machine's hardware
8//! UUID (macOS `IOPlatformExpertDevice` / Linux `/etc/machine-id` /
9//! Windows `MachineGuid`) so ciphertext is stable across restarts but
10//! unreadable on a different machine without the original key.
11
12pub mod Decrypt;
13
14pub mod Encrypt;
15
16pub mod Key;