Skip to content

A Ruby implementation of the Base45 encoding/decoding algorithms.

License

Notifications You must be signed in to change notification settings

phluid61/base45-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base45

Contributor Covenant

A module that can Encode/Decode a string in Base45.

See: https://datatracker.ietf.org/doc/rfc9285/

Usage

Base45::encode(bytes)

Encodes a string in Base45.

Item Description
@param [String] bytes the string to be encoded
@return [String] a Base45-encoded string
require 'base45'

Base45::encode("Hello!!")  #=> "%69 VD92EX0"

Base45::decode(b45)

Decodes a Base45-encoded string.

Item Description
@param [String] b45 the Base45-encoded string to be decoded
@return [String] the decoded bytes, as a string
require 'base45'

Base45::decode("QED8WEX0")  #=> "ietf!"

About

A Ruby implementation of the Base45 encoding/decoding algorithms.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages