A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/multiformats/haskell-multibase below:

multiformats/haskell-multibase: haskell implementation of the multibase multiformat (project by protocol labs)

This project is no longer maintained and has been archived.

Implementation of multibase -self identifying base encodings- in Haskell.

This library can be built with cabal:

 cd path/to/extracted/library
 cabal build

if you want to install it:

This library exports the Multibase module which comes with five functions:

  multiEncode :: String -> Data.ByteString.ByteString -> Bool ->  Data.ByteString.ByteString 
 
  -- takes a base encoding and a byteString and returns the encoded byteString with its base prefix
  -- Bool is the padding flag (makes a difference only for bases for which padding is standardized)
  
  decodeByteString :: Data.ByteString.ByteString -> Data.ByteString.ByteString 
 
  -- takes a multibase-encoded byteString and decodes it (UTF-8), prefix is used to determine encoding
 
  appendPrefix :: String -> Data.ByteString.ByteString -> Data.ByteString.ByteString 
 
  -- appends a multibase prefix to a byteString without encoding it
 
  removePrefix :: Data.ByteString.ByteString -> Data.ByteString.ByteString 
 
  -- just removes the prefix, be careful not to use it on a non-prefixed byteString

String can be : "base id" , "base 2" , "base 8" , "base 10" , "base16" , "base 32" , "base 32z" , "base 32hex" , "base 58btc" , "base 58flickr" , "base 64" , "base64URL"

Please check multibase readme for more information.

@Unlambder

MIT © 2017 multiformats


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4