bencoder alternatives and similar packages
Based on the "Text and Numbers" category.
Alternatively, view bencoder alternatives based on common mentions on social networks and blogs.
-
money
Elixir library for working with Money safer, easier, and fun... Is an interpretation of the Fowler's Money pattern in fun.prog. -
nanoid
Elixir port of NanoID, a secure and URL-friendly unique ID generator. https://hex.pm/packages/nanoid -
secure_random
Convenience library for random base64 strings modeled after my love for Ruby's SecureRandom -
chinese_translation
An elixir module to translate simplified Chinese to traditional Chinese, and vice versa, based on wikipedia data -
inet_cidr
CIDR library for Elixir that is compatible with Erlang's :inet and supports both IPv4 and IPv6 -
Ex_Cldr_Units
Unit formatting (volume, area, length, ...) functions for the Common Locale Data Repository (CLDR) -
minigen
Pure random data generation library, appropriate for realistic simulations in the Erlang ecosystem
CodeRabbit: AI Code Reviews for Developers

Do you think we are missing an alternative of bencoder or a related project?
README
Bencoder
An elixir bencoding package
It's intended for the yolandi
torrent client
Beware
That's a learning exercise for me in elixir/erlang, so the code is still not clean and non idiomatic
Bencode format supports 4 types of data: numbers, dictionaries and lists.
Bencoder
uses elixir's Integer
, Map
, List
and BitString
.
Examples:
Bencoder.encode(2) # "i2e"
Bencoder.encode([4, 202]) # "li4ei202ee"
Bencoder.decode("4:life") # "life"
Bencoder.decode("d4:lifei42ee") # %{"life" => 42}
Bencoder.decode("i42e") # 42
Bencoder.decode("l1:~e") # ["~"]
Install
Add to your mix.exs deps
{:bencoder, "~> 0.0.7"}
Copyright
Copyright (c) 2014 Alexander Ivanov. See [LICENSE](LICENSE) for further details
*Note that all licence references and agreements mentioned in the bencoder README section above
are relevant to that project's source code only.