Sign in Join
Wiki copytemporary

SimpleBaseLib4Pascal

SimpleBaseLib4Pascal as the name implies is a simple to use Base Encoding Package for Delphi/FreePascal Compilers that provides at the moment support for encoding and decoding various bases such as Base16, Base32 (various variants), Base58 (various variants) and Base64 (various variants) and Base85 (various variants).

Supported Encodings

Base32
RFC 4648, Crockford and Extended Hex (BASE32-HEX) alphabets with Crockford character substitution (or any other custom alphabets you might want to use)

Base58
Bitcoin, Ripple and Flickr alphabets (and any custom alphabet you might have)

Base64
Default, DefaultNoPadding, UrlEncoding, XmlEncoding, RegExEncoding and FileEncoding alphabets (and any custom alphabet you might have)

Base85
Ascii85 (Original), Z85 and custom flavors.

Base16
An experimental hexadecimal encoder/decoder.

Supported Compilers

Installing the Library

Unit Tests

For FPC

Simply compile and run "SimpleBaseLib.Tests" project in "FreePascal.Tests" Folder.

For Delphi

Method one, using DUnit Test Runner: to build and run the unit tests for Delphi 10 Tokyo (should be similar for other versions)

Press Ok and save, then build and run.

Method two (using TestInsight, preferred).

License

Licensed Under MIT License.

Download


From the Free Pascal wiki, page "SimpleBaseLib4Pascal", as it stood on 2018-08-31 after a change by Xor-el, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.