Latest 1.1.1
Homepage https://github.com/drichardson/SwiftyBase64
License MIT
Platforms ios 8.0
Authors

SwiftyBase64 provides base64url and base64 encoders as defined by
RFC 4648.

Usage

Standard Base64 Encoding to String

import SwiftyBase64
...
let bytesToEncode : [UInt8] = [1,2,3]
let base64EncodedString = SwiftyBase64.EncodeString(bytesToEncode)

URL and Filename Safe Base64 Encoding to String

import SwiftyBase64
...
let bytesToEncode : [UInt8] = [1,2,3]
let base64EncodedString = SwiftyBase64.EncodeString(bytesToEncode, alphabet:.URLAndFilenameSafe)

Standard Base64 Encoding to [UInt8] of ASCII bytes

import SwiftyBase64
...
let bytesToEncode : [UInt8] = [1,2,3]
let base64EncodedASCIIBytes = SwiftyBase64.Encode(bytesToEncode)

URL and Filename Safe Base64 Encoding to [UInt8] of ASCII bytes

import SwiftyBase64
...
let bytesToEncode : [UInt8] = [1,2,3]
let base64EncodedASCIIBytes = SwiftyBase64.Encode(bytesToEncode, alphabet:.URLAndFilenameSafe)

CocoaPods Installation

CocoaPods is a dependency manager for Cocoa projects.

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

$ gem install cocoapods

To integrate SwiftyBase64 into your Xcode project using CocoaPods, specify it in your Podfile:

use_frameworks!
pod 'SwiftyBase64', '~> 1.0'

Then, run the following command:

$ pod install

Latest podspec

{
    "name": "SwiftyBase64",
    "version": "1.1.1",
    "summary": "base64 and base64url encoders in Swift",
    "homepage": "https://github.com/drichardson/SwiftyBase64",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Doug Richardson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/drichardson/SwiftyBase64.git",
        "tag": "1.1.1"
    },
    "source_files": "SwiftyBase64",
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This