UNPKG
svelte-kit-cookie-session-patch
Version:
latest (1.4.1)
1.4.1
1.4.0
⚒️ Encrypted 'stateless' cookie sessions for SvelteKit
svelte-kit-cookie-session-patch
/
dist
/
esm
/
utils
/
crypto
/
index.d.ts
4 lines
(3 loc)
•
227 B
TypeScript
View Raw
1
2
3
4
import
type
{
BinaryLike
}
from
"./types"
;
export
declare
function
encrypt
(
encryptionKey
:
BinaryLike
):
(
text
:
string
) =>
string
;
export
declare
function
decrypt
(
encryptionKey
:
BinaryLike
):
(
encrypted_string
:
string
) =>
string
;