forked from margelo/react-native-quick-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuickCrypto.ts
More file actions
38 lines (37 loc) · 767 Bytes
/
QuickCrypto.ts
File metadata and controls
38 lines (37 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import * as pbkdf2 from './pbkdf2';
import * as random from './random';
import {
createCipher,
createCipheriv,
createDecipher,
createDecipheriv,
publicEncrypt,
publicDecrypt,
privateDecrypt,
generateKeyPair,
generateKeyPairSync,
} from './Cipher';
import { createSign, createVerify } from './sig';
import { createHmac } from './Hmac';
import { createHash } from './Hash';
import { constants } from './constants';
export const QuickCrypto = {
createHmac,
Hmac: createHmac,
Hash: createHash,
createHash,
createCipher,
createCipheriv,
createDecipher,
createDecipheriv,
publicEncrypt,
publicDecrypt,
privateDecrypt,
generateKeyPair,
generateKeyPairSync,
createSign,
createVerify,
constants,
...pbkdf2,
...random,
};