svelte-kit-cookie-session-patch
Version:
⚒️ Encrypted 'stateless' cookie sessions for SvelteKit
12 lines (11 loc) • 590 B
TypeScript
/**
*
* This work is mostly copied over from `string-cipher` => `https://github.com/limplash/string-cipher`, but since it doesn't support esm(yet) i decided to copy
* only the bits needed for `svelte-kit-cookie-session`. Thank you limplash!
* MIT License
* Copyright (c) 2021 limplash
*
*/
import type { DecrypterOptions, EncrypterOptions, EncryptionFunction } from "./types";
export declare const makeStringDecrypterSync: (opt: DecrypterOptions) => EncryptionFunction<string>;
export declare const makeStringEncrypterSync: (opt: EncrypterOptions) => EncryptionFunction<string>;