cloutiertyler/Base58String
An Swift implementation of base 58 string encoding and decoding
How to Install
Swift Package Manager
Add the following to your Package.swift file in "dependencies".
.package(url: "https://github.com/cloutiertyler/Base58String.git", from: "0.1.0")CocoaPods
Add the following to your Podfile:
pod 'Base58String', :git => 'https://github.com/keefertaylor/Base58String.git' Usage
import Foundation
import Base58String
func test() {
let data = Data([222, 100, 50])
print("Data: \(Array(data))")
let encoded = String(base58Encoding: data)
print("Encoded string: \(encoded)")
let decoded = Data(base58Decoding: encoded)!
print("Decoded data: \(Array(decoded))")
}Package Metadata
Repository: cloutiertyler/Base58String
Stars: 12
Forks: 9
Open issues: 2
Default branch: master
Primary language: swift
License: MIT
README: README.md