GitHub license xcode-version Swift 5.0 Carthage Compatible

ConfigClientDecrypt provides decryption of properties encrypted by a dhardiman/Config configuration. Once you have linked the framework, add an encryptionKey property to your configuration as follows:

"encryptionKey": {
  "type": "EncryptionKey",
  "defaultValue": "<your-encryption-key>"
}

Then, add an extension to your generated configuration enum:

extension MyGeneratedConfiguration: EncryptionKeyProviding {}

You may then decode encrypted properties from your configuration:

MyGeneratedConfiguration.service.apiKey.decryptedString(using: MyGeneratedConfiguration.self)

GitHub

View Github