HPKE (Hybrid Public Key Encryption) wrapper for SvelteKit applications with end-to-end encryption support and seal/unseal obfuscation.
npm i @ubay182/sveltekit-hpke-wrapper
or
pnpm add @ubay182/sveltekit-hpke-wrapper
See a complete working example here: src/routes/+page.svelte
For full API reference, seal/unseal documentation, security notes, and development instructions, see packages/hpke-wrapper/README.md.
The latest version introduces seal/unseal functionality that obfuscates encrypted data to hide the HPKE structure:
{
"ciphertext": "IZ8VQlMQ...",
"enc": "QsjTuAUU..."
}
ā Structure is visible after base64 decode
"x7k2mSGVsbG8gV29ybGQ...x7k2m0"
ā Looks like random gibberish, no visible structure
MIT