sveltekit-hpke-wrapper Svelte Themes

Sveltekit Hpke Wrapper

HPKE (Hybrid Public Key Encryption) wrapper for SvelteKit applications with end-to-end encryption support and seal/unseal obfuscation.

@ubay182/sveltekit-hpke-wrapper

HPKE (Hybrid Public Key Encryption) wrapper for SvelteKit applications with end-to-end encryption support and seal/unseal obfuscation.

šŸ“¦ Installation

npm i @ubay182/sveltekit-hpke-wrapper

or

pnpm add @ubay182/sveltekit-hpke-wrapper

šŸš€ Quick Start

See a complete working example here: src/routes/+page.svelte

šŸ“š Documentation

For full API reference, seal/unseal documentation, security notes, and development instructions, see packages/hpke-wrapper/README.md.

šŸ” What's New: Seal/Unseal

The latest version introduces seal/unseal functionality that obfuscates encrypted data to hide the HPKE structure:

Before (Standard HPKE)

{
    "ciphertext": "IZ8VQlMQ...",
    "enc": "QsjTuAUU..."
}

āŒ Structure is visible after base64 decode

After (Sealed)

"x7k2mSGVsbG8gV29ybGQ...x7k2m0"

āœ… Looks like random gibberish, no visible structure

šŸ“„ License

MIT

Top categories

Loading Svelte Themes