Skip to content

nao1215/clockwork-base32

Repository files navigation

Test

clockwork-base32

Clockwork Base32 is a simple variant of Base32 inspired by Crockford's Base32. See Clockwork Base32 Specification.

Supported Haskell Versions & OS

  • GHC 9.0 or later
  • Linux, macOS, Windows

Usage

module Main where

import ClockworkBase32 (encode, decode)

main :: IO ()
main = do
    -- encode example
    let originalString = "foobar"
    putStrLn $ "Original string: " ++ originalString
    let encodedString = encode originalString
    putStrLn $ "Encoded (Base32): " ++ encodedString

    -- decode example
    let decodedResult = decode encodedString
    case decodedResult of
        Right decodedString -> putStrLn $ "Decoded string: " ++ decodedString
        Left err            -> putStrLn $ "Error decoding: " ++ err

Other Implementations

Reference Implementations

Third-party Implementations

Contributing

First off, thanks for taking the time to contribute! ❤️ See CONTRIBUTING.md for more information. Contributions are not only related to development. For example, GitHub Star motivates me to develop!

Contact

If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.

LICENSE

MIT License

About

Clockwork-Base32 in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published