{"id":32307720,"url":"https://github.com/bitanon/hashlib_codecs","last_synced_at":"2026-04-18T14:09:40.932Z","repository":{"id":167531929,"uuid":"643162061","full_name":"bitanon/hashlib_codecs","owner":"bitanon","description":"Fast and error resilient codecs in pure Dart","archived":false,"fork":false,"pushed_at":"2025-08-17T15:52:10.000Z","size":104,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T17:08:22.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitanon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://paypal.me/sd1pu"]}},"created_at":"2023-05-20T09:41:05.000Z","updated_at":"2025-08-17T15:52:13.000Z","dependencies_parsed_at":"2024-04-18T11:32:12.261Z","dependency_job_id":"623ceafc-5a29-4bc4-ae85-ce4cc22a5c51","html_url":"https://github.com/bitanon/hashlib_codecs","commit_stats":null,"previous_names":["bitanon/hashlib_codecs"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/bitanon/hashlib_codecs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitanon%2Fhashlib_codecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitanon%2Fhashlib_codecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitanon%2Fhashlib_codecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitanon%2Fhashlib_codecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitanon","download_url":"https://codeload.github.com/bitanon/hashlib_codecs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitanon%2Fhashlib_codecs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29667119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-23T07:22:41.045Z","updated_at":"2026-02-20T23:01:54.096Z","avatar_url":"https://github.com/bitanon.png","language":"Dart","funding_links":["https://paypal.me/sd1pu"],"categories":[],"sub_categories":[],"readme":"# Hashlib Codecs\n\n[![plugin version](https://img.shields.io/pub/v/hashlib_codecs?label=pub)](https://pub.dev/packages/hashlib_codecs)\n[![test](https://github.com/bitanon/hashlib_codecs/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/bitanon/hashlib_codecs/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/bitanon/hashlib_codecs/graph/badge.svg?token=ISIYJ8MNI0)](https://codecov.io/gh/bitanon/hashlib_codecs)\n[![likes](https://img.shields.io/pub/likes/hashlib_codecs?logo=dart)](https://pub.dev/packages/hashlib_codecs/score)\n[![pub points](https://img.shields.io/pub/points/hashlib_codecs?logo=dart\u0026color=teal)](https://pub.dev/packages/hashlib_codecs/score)\n[![popularity](https://img.shields.io/pub/popularity/hashlib_codecs?logo=dart)](https://pub.dev/packages/hashlib_codecs/score)\n[![dart support](https://img.shields.io/badge/dart-%3e%3d%202.19.0-39f?logo=dart)](https://dart.dev/guides/whats-new#september-8-2021-214-release)\n[![dependencies](https://img.shields.io/badge/dependencies-zero-889)](https://github.com/bitanon/hashlib_codecs/blob/master/pubspec.yaml)\n\nThis library contains implementations of fast and error resilient codecs in pure Dart.\n\n## Depencencies\n\nThis package has NO dependency.\n\n## Features\n\n### Binary (Base-2)\n\n| Type    | Available                |\n| ------- | ------------------------ |\n| Class   | `Base2Codec`             |\n| Methods | `fromBinary`, `toBinary` |\n\nAvailable codecs:\n\n- **standard**: `01` (default)\n\n### Octal (Base-8)\n\n| Type    | Available              |\n| ------- | ---------------------- |\n| Class   | `Base8Codec`           |\n| Methods | `fromOctal`, `toOctal` |\n\nAvailable codecs:\n\n- **standard**: `012345678` (default)\n\n### Hexadecimal (Base-16)\n\n| Type    | Available          |\n| ------- | ------------------ |\n| Class   | `Base16Codec`      |\n| Methods | `fromHex`, `toHex` |\n\nAvailable codecs:\n\n- **upper**: `0123456789ABCDEF` (default)\n- **lower**: `0123456789abcdef`\n\n### Base-32\n\n\u003e Supports conversion without padding\n\n| Type    | Available                |\n| ------- | ------------------------ |\n| Class   | `Base32Codec`            |\n| Methods | `fromBase32`, `toBase32` |\n\nAvailable codecs:\n\n- **standard** (RFC-4648): `ABCDEFGHIJKLMNOPQRSTUVWXYZ234567` (default)\n- **lowercase**: `abcdefghijklmnopqrstuvwxyz234567`\n- **hex**: `0123456789ABCDEFGHIJKLMNOPQRSTUV`\n- **hexLower**: `0123456789abcdefghijklmnopqrstuv`\n- **crockford**: `0123456789bcdefghjkmnpqrstuvwxyz`\n- **z**: `ybndrfg8ejkmcpqxot1uwisza345h769`\n- **wordSafe**: `23456789CFGHJMPQRVWXcfghjmpqrvwx`\n\n### Base-64\n\n\u003e Supports conversion without padding, and \u003cbr\u003e\n\u003e the URL/Filename-safe Base64 conversion.\n\n| Type    | Available                |\n| ------- | ------------------------ |\n| Class   | `Base64Codec`            |\n| Methods | `fromBase64`, `toBase64` |\n\nAvailable codecs:\n\n- **standard** (RFC-4648): `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/` (default)\n- **urlSafe**: `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`\n- **bcrypt**: `./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`\n\n### UTF-8\n\n| Type    | Available            |\n| ------- | -------------------- |\n| Class   | `UTF8Codec`          |\n| Methods | `fromUtf8`, `toUtf8` |\n\nAvailable codecs:\n\n- **standard**: [RFC-3629](https://datatracker.ietf.org/doc/html/rfc3629)\n\n### BigInt\n\n\u003e Supports both the Big-Endian and Little-Endian conversion\n\n| Type    | Available                |\n| ------- | ------------------------ |\n| Class   | `BigIntCodec`            |\n| Methods | `fromBigInt`, `toBigInt` |\n\nAvailable codecs:\n\n- **msbFirst**: treats the input bytes in big-endian order\n- **lsbFirst**: treats the input bytes in little-endian order\n\n### Modular Crypt Format (PHC String Format)\n\n\u003e Encoding and Decoding of Hash algorithm output according to the\n\u003e [PHC string format specification](https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md).\n\n| Type     | Available              |\n| -------- | ---------------------- |\n| Class    | `CryptFormat`          |\n| Constant | `crypt`                |\n| Methods  | `toCrypt`, `fromCrypt` |\n\n## Getting Started\n\nThe following import will give you access to all of the algorithms in this package.\n\n```dart\nimport 'package:hashlib_codecs/hashlib_codecs.dart';\n```\n\nCheck the [API Reference](https://pub.dev/documentation/hashlib_codecs/latest/hashlib_codecs/hashlib_codecs-library.html) for details.\n\n## Usage\n\nExamples can be found inside the `example` folder.\n\n```dart\nimport 'package:hashlib_codecs/hashlib_codecs.dart';\n\nvoid main() {\n  var inp = [0x3, 0xF1];\n  print(\"input =\u003e $inp\");\n  print('');\n\n  print(\"binary =\u003e ${toBinary(inp)}\");\n  print('');\n\n  print(\"octal =\u003e ${toOctal(inp)}\");\n  print('');\n\n  print(\"hexadecimal =\u003e ${toHex(inp)}\");\n  print(\"hexadecimal (uppercase) =\u003e ${toHex(inp, upper: true)}\");\n  print('');\n\n  print(\"base32 =\u003e ${toBase32(inp)}\");\n  print(\"base32 (lowercase) =\u003e ${toBase32(inp, lower: true)}\");\n  print(\"base32 (no padding) =\u003e ${toBase32(inp, padding: false)}\");\n  print(\"base32 (hex) =\u003e ${toBase32(inp, codec: Base32Codec.hex)}\");\n  print(\"base32 (z-base-32) =\u003e ${toBase32(inp, codec: Base32Codec.z)}\");\n  print(\"base32 (geohash) =\u003e ${toBase32(inp, codec: Base32Codec.geohash)}\");\n  print(\"base32 (crockford) =\u003e ${toBase32(inp, codec: Base32Codec.crockford)}\");\n  print(\"base32 (word-safe) =\u003e ${toBase32(inp, codec: Base32Codec.wordSafe)}\");\n  print('');\n\n  print(\"base64 =\u003e ${toBase64(inp)}\");\n  print(\"base64url =\u003e ${toBase64(inp, url: true)}\");\n  print(\"base64 (no padding) =\u003e ${toBase64(inp, padding: false)}\");\n  print(\"bcrypt =\u003e ${toBase64(inp, codec: Base64Codec.bcrypt)}\");\n  print('');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitanon%2Fhashlib_codecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitanon%2Fhashlib_codecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitanon%2Fhashlib_codecs/lists"}