Merge pull request #8 from timburks/master Update Package.swift
Merge pull request #8 from timburks/master
Update Package.swift
SwiftyBase64 provides base64url and base64 encoders as defined by RFC 4648.
import SwiftyBase64 ... let bytesToEncode : [UInt8] = [1,2,3] let base64EncodedString = SwiftyBase64.EncodeString(bytesToEncode)
import SwiftyBase64 ... let bytesToEncode : [UInt8] = [1,2,3] let base64EncodedString = SwiftyBase64.EncodeString(bytesToEncode, alphabet:.URLAndFilenameSafe)
import SwiftyBase64 ... let bytesToEncode : [UInt8] = [1,2,3] let base64EncodedASCIIBytes = SwiftyBase64.Encode(bytesToEncode)
import SwiftyBase64 ... let bytesToEncode : [UInt8] = [1,2,3] let base64EncodedASCIIBytes = SwiftyBase64.Encode(bytesToEncode, alphabet:.URLAndFilenameSafe)
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:
Podfile
use_frameworks! pod 'SwiftyBase64', '~> 1.0'
Then, run the following command:
$ pod install
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SwiftyBase64
SwiftyBase64 provides base64url and base64 encoders as defined by RFC 4648.
Usage
Standard Base64 Encoding to String
URL and Filename Safe Base64 Encoding to String
Standard Base64 Encoding to [UInt8] of ASCII bytes
URL and Filename Safe Base64 Encoding to [UInt8] of ASCII bytes
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:
To integrate SwiftyBase64 into your Xcode project using CocoaPods, specify it in your
Podfile
:Then, run the following command: