Properties
Static
encrypt
encrypt: ((params: { plainText: string; key: string; cipherType?: string }) => string)
Type declaration
-
- (params: { plainText: string; key: string; cipherType?: string }): string
-
Parameters
-
params: { plainText: string; key: string; cipherType?: string }
-
plainText: string
-
key: string
-
Optional
cipherType?: string
Returns string
Static
decrypt
decrypt: ((params: { encryptedText: string; key: string; cipherType?: string }) => string)
Type declaration
-
- (params: { encryptedText: string; key: string; cipherType?: string }): string
-
Parameters
-
params: { encryptedText: string; key: string; cipherType?: string }
-
encryptedText: string
-
key: string
-
Optional
cipherType?: string
Returns string
Static
generateKeyPair
generateKeyPair: ((params: { keySize: number }) => { privateKey: string; publicKey: string })
Type declaration
-
- (params: { keySize: number }): { privateKey: string; publicKey: string }
-
Parameters
-
params: { keySize: number }
Returns { privateKey: string; publicKey: string }
-
privateKey: string
-
publicKey: string
Static
ios
ios: { getExportedPublicKey: ((key: string) => string) }
Type declaration
-
getExportedPublicKey: ((key: string) => string)
-
- (key: string): string
-
Returns string
Used to encrypt the provided content with given public key.
Method
encrypt
Returns
Encrypted text which encoded with Base64
Ios
Android
Since
4.4