Skip to content

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

License

Notifications You must be signed in to change notification settings

ItsSkynet/capacitor-crypto-aes-gcm

 
 

Repository files navigation

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


About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 43.9%
  • Swift 33.9%
  • TypeScript 8.7%
  • Ruby 5.8%
  • Objective-C 4.9%
  • JavaScript 2.8%