remix-utils-rt
Version:
This package contains simple utility functions to use with [React Router](https://reactrouter.com/home).
10 lines (9 loc) • 366 B
TypeScript
/**
* Uses Web Crypto API to encrypt a string using AES encryption.
*/
export declare function encrypt(value: string, seed: string): Promise<string>;
/**
* Uses Web Crypto API to decrypt a string using AES encryption.
*/
export declare function decrypt(value: string, seed: string): Promise<string>;
export declare function randomString(bytes?: number): string;