Simple crypto manager for your app
- Import in project
import ESCrypto
- For encrypt your data use
ESCrypto.shared.encrypt(data: Data, cryptoType: ESCryptoType, completion: (Data?, ESCryptoError?) -> Void)
- For decrypt your data use
ESCrypto.shared.decrypt(data: Data, cryptoType: ESCryptoType, completion: (Data?, ESCryptoError?) -> Void)
- For update crypto key set cryptoKeys property
ESCrypto.shared.cryptoKeys