mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
- Replace emoji icons with Ionicons for professional appearance - Improve E2EE key recovery with better diagnostics - Add analytics for pack icon events - Document E2EE removal plan for future simplification 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
71 lines
1.5 KiB
TypeScript
71 lines
1.5 KiB
TypeScript
/**
|
|
* E2EE Encryption Library
|
|
*
|
|
* Public API exports for the Sauci E2EE implementation.
|
|
*/
|
|
|
|
// Types
|
|
export type {
|
|
KeysMetadata,
|
|
EncryptedMessagePayload,
|
|
EncryptedMediaPayload,
|
|
DecryptedContent,
|
|
DecryptedMessageState,
|
|
RSAPublicKeyJWK,
|
|
RSAPrivateKeyJWK,
|
|
EncryptionKeysState,
|
|
MasterKey,
|
|
EncryptionContext,
|
|
} from './types';
|
|
|
|
// Constants
|
|
export {
|
|
MESSAGE_VERSION_PLAINTEXT,
|
|
MESSAGE_VERSION_E2EE,
|
|
} from './constants';
|
|
|
|
// Key Management
|
|
export {
|
|
generateAndStoreKeyPair,
|
|
getPrivateKey,
|
|
getLocalPublicKey,
|
|
hasKeyPair,
|
|
isPublicKeyUploaded,
|
|
markPublicKeyUploaded,
|
|
clearKeys,
|
|
isCryptoAvailable,
|
|
isValidPublicKeyJwk,
|
|
sanitizePublicKeyJwk,
|
|
} from './keyManager';
|
|
|
|
// Text Message Encryption/Decryption
|
|
export { encryptTextMessage } from './messageEncryption';
|
|
export { decryptTextMessage } from './messageDecryption';
|
|
|
|
// Media Encryption/Decryption
|
|
export { encryptMediaFile, getEncryptedFileExtension } from './mediaEncryption';
|
|
export { decryptMediaFile, cleanupDecryptedMedia } from './mediaDecryption';
|
|
|
|
// Admin Keys
|
|
export {
|
|
getActiveMasterKey,
|
|
getAdminPublicKey,
|
|
getAdminKeyId,
|
|
clearAdminKeyCache,
|
|
} from './adminKeys';
|
|
|
|
// Utilities
|
|
export {
|
|
arrayBufferToBase64,
|
|
base64ToArrayBuffer,
|
|
} from './utils';
|
|
|
|
// Key Rotation
|
|
export { triggerKeyRotation, triggerAutoKeyRotation } from './triggerKeyRotation';
|
|
|
|
// Stale Key Repair
|
|
export { repairStaleKey } from './repairStaleKey';
|
|
|
|
// Crypto Operations
|
|
export { verifyKeyPair } from './crypto';
|