Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 1.74 KB

README.md

File metadata and controls

81 lines (49 loc) · 1.74 KB

capacitor-crypto-aes-gcm

Encrypt & Decrypt using AES-GCM 256 on iOS using CryptoKit

9/1/2024 Addeed support for Capacitor 6

Install

npm install capacitor-crypto-aes-gcm
npx cap sync

API

encrypt(...)

encrypt(options: { text: string; base64Encoded: string; encodedIV?: string; }) => any
Param Type
options { text: string; base64Encoded: string; encodedIV?: string; }

Returns: any


decrypt(...)

decrypt(options: { text: string; base64Encoded: string; encodedIV?: string; }) => any
Param Type
options { text: string; base64Encoded: string; encodedIV?: string; }

Returns: any


generateSymmetricKey()

generateSymmetricKey() => any

Returns: any


generateIV()

generateIV() => any

This function is not available in iOS, as original author did not include a function for this

Returns: any