Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vsouza/vsbase64

Pure Swift base64 encode and decode implementation (Linux ready)
https://github.com/vsouza/vsbase64

base64 linux pure-swift swift

Last synced: about 2 months ago
JSON representation

Pure Swift base64 encode and decode implementation (Linux ready)

Awesome Lists containing this project

README

        

# VSBase64 - Swift Base64 (Linux Supported)
> Pure Swift base64 encode and decode implementation

[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]

Encode and decode base64 strings with Swift 3.0. It's a implementation to use on
Swift backend projects.

## Installation

Add this project on your `Package.swift`

```swift
import PackageDescription

let package = Package(
dependencies: [
.Package(url: "https://github.com/vsouza/vsbase64.git", majorVersion: 0, minor: 0)
]
)
```

## Usage example

```swift
import VSBase64
let str = "foo"
let encodedStr = VSBase64.encode(str)
print(encodedStr) // "Zm9v"

let decoded = VSBase64.decode(encodedStr)
print(decoded) // "foo"
```

## Development setup

You need to install Swift 3.0 (or later)

## Release History

* 0.0.2
* CI Integration
* 0.0.1
* Encode and Decode strings

## Meta

Vinicius Souza – [@iamvsouza](https://twitter.com/iamvsouza) – [email protected]

Distributed under the XYZ license. See ``LICENSE`` for more information.

[https://github.com/vsouza/vsbase64](https://github.com/vsouza/vsbase64)

[swift-image]:https://img.shields.io/badge/swift-3.0-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[travis-image]: https://travis-ci.org/vsouza/VSBase64.svg?branch=master
[travis-url]: https://travis-ci.org/vsouza/VSBase64