-
Notifications
You must be signed in to change notification settings - Fork 0
/
teocli.crypto.d.ts
51 lines (45 loc) · 1.05 KB
/
teocli.crypto.d.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Typescript TeocliCrypt class definition
*/
export declare class TeocliCrypto {
constructor(cryptojs: any);
/**
* Decrypt text with CryptoJS AES
*
* @param {string} text
* @param {string} secret
*
* @returns {string}
*/
decrypt(text: string, secret: string): string;
/**
* Encrypt object with CryptoJS AES
*
* @param {any} data
* @param {string} secret
*
* @returns {any}
*/
encrypt(data: any, secret: string): any;
/**
* Get hash of string with CryptoJS SHA512
*
* @param {string} text Input text
* @return {string} Hash of input string
*/
hash(text: string): string;
/**
* Get hash of string with CryptoJS SHA1
*
* @param {string} text Input text
* @return {string} Hash of input string
*/
hash_short(text: string): string;
/**
* Get hash of string with MD5
*
* @param {string} text Input text
* @return {string} Hash of input string
*/
MD5(text: string): any;
}