Swiftpack.co - dan-hart/DHCryptography as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dan-hart.
dan-hart/DHCryptography 0.0.1
Swift wrapper for AES encryption, with help from CryptoSwift
⭐️ 0
🕓 27 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/dan-hart/DHCryptography.git", from: "0.0.1")

DHCryptography

Swift wrapper for AES encryption, with help from CryptoSwift

Encrypt

let store = DHCryptography.shared.encrypt(stringDictionary: ["TOKEN": "1234"])

Decrypt

guard let decryptedData = store?.decrypted else { return }
let keyValue = String(data: decryptedData, encoding: .utf8)
print(keyValue) // "{ "TOKEN": "1234" }"

"Buy Me A Coffee"

GitHub

link
Stars: 0
Last commit: 27 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics