See the subsections below for details about the different installation methods.
File
→ Add Packages...
https://github.com/dmytriigolovanov/swift-rsa-key-loader
Dependency Rule
to Up to Next Major Version
Add Package
import RSAKeyLoader
Private Key
let fileName = "rsa_file_name"
do {
let privateKey = try RSAKeyLoader.loadPrivateKey(fileName: fileName, fileType: .pem)
// use private key
} catch {
print(error
}
let fileName = "rsa_file_name"
do {
let privateKey = try RSAKeyLoader.loadPublicKey(fileName: fileName, fileType: .pem)
// use public key
} catch {
print(error
}
Version | PEM |
---|---|
1.0.0 | + |
The contents of this repository are licensed under the MIT License.
link |
Stars: 1 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics