1 |
|
2 | import { StringMap } from '@naturalcycles/js-lib';
|
3 |
|
4 |
|
5 |
|
6 | export declare function encryptRandomIVBuffer(input: Buffer, secretKeyBase64: string): Buffer;
|
7 |
|
8 |
|
9 |
|
10 | export declare function decryptRandomIVBuffer(input: Buffer, secretKeyBase64: string): Buffer;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare function decryptObject(obj: StringMap, secretKey: string): StringMap;
|
16 | export declare function encryptObject(obj: StringMap, secretKey: string): StringMap;
|
17 |
|
18 |
|
19 |
|
20 | export declare function decryptString(str: string, secretKey: string): string;
|
21 |
|
22 |
|
23 |
|
24 | export declare function encryptString(str: string, secretKey: string): string;
|