Properties
Static
encryptGCMAsync
encryptGCMAsync: ((params: { plainText: string; key: string; ivSize: number; onComplete: ((encryptedText: string, iv: string) => void); onFailure: ((err: string) => void) }) => void)
Type declaration
-
- (params: { plainText: string; key: string; ivSize: number; onComplete: ((encryptedText: string, iv: string) => void); onFailure: ((err: string) => void) }): void
-
Parameters
-
params: { plainText: string; key: string; ivSize: number; onComplete: ((encryptedText: string, iv: string) => void); onFailure: ((err: string) => void) }
-
plainText: string
-
key: string
-
ivSize: number
-
onComplete: ((encryptedText: string, iv: string) => void)
-
- (encryptedText: string, iv: string): void
-
Parameters
-
encryptedText: string
-
iv: string
Returns void
-
onFailure: ((err: string) => void)
-
- (err: string): void
-
Returns void
Returns void
Static
decryptGCMAsync
decryptGCMAsync: ((params: { encryptedText: string; key: string; iv: string; onComplete: ((decryptedText: string) => void); onFailure: ((err: string) => void) }) => void)
Type declaration
-
- (params: { encryptedText: string; key: string; iv: string; onComplete: ((decryptedText: string) => void); onFailure: ((err: string) => void) }): void
-
Parameters
-
params: { encryptedText: string; key: string; iv: string; onComplete: ((decryptedText: string) => void); onFailure: ((err: string) => void) }
-
encryptedText: string
-
key: string
-
iv: string
-
onComplete: ((decryptedText: string) => void)
-
- (decryptedText: string): void
-
Returns void
-
onFailure: ((err: string) => void)
-
- (err: string): void
-
Returns void
Returns void
Static
generateKey
generateKey: ((length: number) => string)
Type declaration
-
- (length: number): string
-
Returns string
Used to encrypt the provided plain text with given parameters.
Method
encryptGCMAsync
Ios
Android
Since
4.4