https://github.com/ron4fun/base_encoding
base_encoding is a compact and standalone encoding library 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).
https://github.com/ron4fun/base_encoding
base16 base32 base58 base64 bitcoin crockford dart decoding encoding extended-hex flickr hexadecimal regex-encode rfc4648 ripple urlencode xmlencode
Last synced: 4 months ago
JSON representation
base_encoding is a compact and standalone encoding library 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).
- Host: GitHub
- URL: https://github.com/ron4fun/base_encoding
- Owner: ron4fun
- License: other
- Created: 2021-10-14T21:23:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-18T21:11:53.000Z (over 4 years ago)
- Last Synced: 2023-08-20T21:28:09.776Z (over 2 years ago)
- Topics: base16, base32, base58, base64, bitcoin, crockford, dart, decoding, encoding, extended-hex, flickr, hexadecimal, regex-encode, rfc4648, ripple, urlencode, xmlencode
- Language: Dart
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## base_encoding [](https://github.com/ron4fun/base_encoding/blob/master/LICENSE) [](https://travis-ci.com/ron4fun/base_encoding)
**`base_encoding`** is a compact and standalone encoding library 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).
**Supported Encodings:**
Base64: Default, DefaultNoPadding, UrlEncoding, XmlEncoding, RegExEncoding and FileEncoding alphabets
(and any custom alphabet you might have)
Base58: Bitcoin, Ripple and Flickr alphabets (and any custom alphabet you might have)
Base32: RFC 4648, Crockford and Extended Hex (BASE32-HEX) alphabets with Crockford character substitution
(or any other custom alphabets you might want to use)
Base16: An experimental hexadecimal encoder/decoder.
**Usage Examples.**
```dart
import 'package:base_encoding/base_encoding.dart';
main() {
final base32 = BaseEncoding.CreateBase32Crockford();
String rawData = "foobar";
var output = base32.Encode(rawData.codeUnits, false);
print('Output: ${output}'); // Output: CSQPYRK1E8
}
```
**License**
This "Software" is Licensed Under **`MIT License (MIT)`** .
#### Tip Jar
* :dollar: **Bitcoin**: `1Mcci95WffSJnV6PsYG7KD1af1gDfUvLe6`