Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zmstone/base16

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base16 encoding and decoding

API

Both encode/1 and decode/1 functions are of (binary()) -> binary() type.

The usage looks like:

B = crypto:rand_bytes(10).
H = base16:encode(B).
B = base16:decode(H).

Please, note:

  • base16:encode/1 uses upper-case latters.
  • base16:decode/1 requires the argument to be a binary of odd-number size.

License

The library itself is licensed under the Simplified (2-clause) BSD license.

About

base16 without any tests, use it at your own risk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Erlang 84.1%
  • Makefile 15.9%