EncryptedCookieStore
import { EncryptedCookieStore } from "https://raw.githubusercontent.com/worker-tools/encrypted-cookie-store/master/index.ts";
Encrypted Cookie Store
A partial implementation of the Cookie Store API that transparently encrypts and decrypts cookies via AES-GCM.
This is likely only useful in server-side implementations, but written in a platform-agnostic way.
class EncryptedCookieStore implements CookieStore { }
delete(name: string): Promise<void>;
delete(options: any);
dispatchEvent(event: Event): boolean;
async getAll(options?: any);
set(name: string, value: string): Promise<void>;
§Implements
§Methods
§
addEventListener(...args: Parameters<CookieStore["addEventListener"]>): void
[src]§
delete(name: string): Promise<void>
[src]delete(options: CookieStoreDeleteOptions): Promise<void>
[src]delete(options: any)
[src]§
get(name?: string): Promise<CookieListItem | null>
[src]get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>
[src]get(name?: string | CookieStoreGetOptions): Promise<CookieListItem | null>
[src]§
getAll(name?: string): Promise<CookieList>
[src]getAll(options?: CookieStoreGetOptions): Promise<CookieList>
[src]getAll(options?: any)
[src]§
removeEventListener(...args: Parameters<CookieStore["removeEventListener"]>): void
[src]§
set(name: string, value: string): Promise<void>
[src]set(options: CookieInit): Promise<void>
[src]§Static Methods
§
deriveCryptoKey(opts: DeriveOptions): Promise<CryptoKey>
[src]A helper function to derive a crypto key from a passphrase