Swiftpack.co - Package - std-swift/Base32

Base32

Crockford's Base32 (without check symbols)

Encoding and decoding errors are silently ignored, and invalid bytes are stripped

Importing

import Base32
dependencies: [
	.package(url: "https://github.com/std-swift/Base32.git",
	         from: "2.0.0")
],
targets: [
	.target(
		name: "",
		dependencies: [
			"Base32"
		]),
]

Using

  • Base32Decoder: StreamDecoder with Character input elements and [UInt8] output
  • Base32Encoder: StreamEncoder with UInt8 input elements and String output

Base32

Base32.decode(_ data: Sequence) -> Base32Decoder.Decoded
Base32.encode(_ data: Sequence) -> Base32Encoder.Encoded

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 2