Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

932 B
Raw Blame
/**
 * <auto-generated />
 * This file is auto-generated from core/models/scripts/generate-key-vocabulary.cjs.
 * Do not edit this file directly. Run 'core/models/build.sh' (or 'node core/models/scripts/generate-key-vocabulary.cjs') to regenerate.
 */

/**
 * The algorithms a piece of vault key ciphertext can be encrypted with. The token travels next to every
 * ciphertext, so a reader always knows how to open it without inferring anything from context.
 */
export const VaultKeyAlgorithm = {
  /**
   * AES-256-GCM: symmetric, used where the reader already holds the wrapping key.
   */
  Aes256Gcm: 'aes256-gcm',

  /**
   * RSA-OAEP with SHA-256: asymmetric, used to encrypt a VEK to a recipient's public key.
   */
  RsaOaepSha256: 'rsa-oaep-sha256',
} as const;

/**
 * Type representing all valid VaultKeyAlgorithm tokens.
 */
export type VaultKeyAlgorithmValue = typeof VaultKeyAlgorithm[keyof typeof VaultKeyAlgorithm];