A lightweight Swift library providing useful utilities for handling Base64 encoding and decoding. Simplify working with Base64 strings in your applications with concise, modern Swift APIs. This logic was lifted from here and changed slightly for more general use.
- Base64 Encoding: Easily encode strings or data to Base64 format.
- Base64 Decoding: Decode Base64 strings back to their original form.
- Error Handling: Robust error handling for invalid Base64 inputs.
- Modern Swift: Written with Swift 6 best practices and seamless integration into any Swift project.
To add base64-swift to your project:
- Open your project in Xcode.
- Go to File > Add Packages.
- Enter the repository URL:
https://github.com/yourusername/base64-swift. - Choose the version or branch and integrate the package.
Alternatively, add the dependency directly to your Package.swift file:
dependencies: [
.package(url: "https://github.com/nashysolutions/base64-swift", from: "1.0.0")
]This project incorporates modified code from the WebAuthn Swift project, which is an open-source initiative for implementing the WebAuthn spec in Swift. We are grateful to the authors and contributors of the WebAuthn Swift project for their pioneering efforts in web authentication.