Pure Swift base64 encode and decode implementation
Encode and decode base64 strings with Swift 3.0. It's a implementation to use on Swift backend projects.
Add this project on your Package.swift
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/vsouza/vsbase64.git", majorVersion: 0, minor: 0)
]
)
import VSBase64
let str = "foo"
let encodedStr = VSBase64.encode(str)
print(encodedStr) // "Zm9v"
let decoded = VSBase64.decode(encodedStr)
print(decoded) // "foo"
You need to install Swift 3.0 (or later)
- 0.0.2
- CI Integration
- 0.0.1
- Encode and Decode strings
Vinicius Souza – @iamvsouza – hi@vsouza.com
Distributed under the XYZ license. See LICENSE
for more information.