Based on various requests, I decided to make a variant of BaseNcodingDelphi that is compatible with both FPC and Delphi 2009 Upwards.

Based on various requests, I decided to make a variant of BaseNcodingDelphi that is compatible with both FPC and Delphi 2009 Upwards.

BaseNcodingPascal is a Library for encoding of binary data into strings using base32, base85, base128 and other algorithms for (FPC 3.0.0 and Delphi 2009 Upwards).
https://github.com/Xor-el/BaseNcodingPascal

Comments

  1. Would there be any benefits of using this vs Delphi's EncodeBase64()?

    ReplyDelete
  2. @Micheal S, depending on your purpose, the answer to your question can vary.

    let me cite some examples

    1. if you want you to use a custom character set and padding char other the default one, you can specify it in the constructor unlike that of delphi in which you are not allowed to tweak it.

    2. this library allows you to specify the encoding you wish to use. it also allows us to specify if we want to parallelize the job for large inputs for certain base types like base64, basen and basebign. all these are available through the constructor.

    3. it also has support for other bases other than base64 which are base128, base256, base32, base85, base91, basen and basebign where n is any arbitrary integer.

    any other questions are welcome.

    ReplyDelete
  3. My need is regular base64 encode/decode for transfering files via http. Nothing fancy.. I suppose EncodeBase64 will do the trick I need for now. I'll keep your library in mind though. Thank you for putting this out to the community.

    ReplyDelete

Post a Comment