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
🕓 2 years 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: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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