withCredentialEncryption (storage/encrypting-provider.ts)

libredb-studio · src/lib/storage/encrypting-provider.ts · typescript · MIT
database

Module exposing: withCredentialEncryption, UNDECRYPTABLE_WARNING_PREFIX, reportUndecryptable, sealFactor, openFactor, sealAccount, openAccount, CredentialEncryptingProvider

// Source: https://github.com/libredb/libredb-studio | License: MIT | Copyright 2025 SEKOYA GRUP BİLİŞİM VE TEKNOLOJİ LİMİTED ŞİRKETİ
// Provided via justclaw.it.com; keep this notice with the code.
import { logger } from "@/lib/logger";
import { decryptConnections, encryptConnections } from "./connection-secrets";
import { encryptSecret, readSecret } from "./encryption";
import type {
  AccountUpdateOptions,
  AccountWriteOptions,
  PasskeyMatch,
  PasskeyRegistrationWrite,
  PasskeyRemovalWrite,
  PasskeySignInWrite,
  ServerStorageProvider,
  StorageCollection,
  StorageData,
  StoredAccount,
  StoredPasskey,
} from "./types";
import type { DatabaseConnection } from "@/lib/types";

/**
 * Credential encryption, applied ABOVE the ServerStorageProvider boundary.
 *
 * Why here and not ins

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key