<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bitanon blog</title><description>News from Bitanon and release notes for every project.</description><link>https://bitanon.dev/blog/</link><language>en</language><atom:link href="https://bitanon.dev/blog/rss.xml" rel="self" type="application/rss+xml"/><item><title>convertlib 3.8.0</title><link>https://bitanon.dev/blog/convertlib-3-8-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-8-0/</guid><description>New codecs, each with to&lt;Name&gt;, from&lt;Name&gt;, and tryFrom&lt;Name&gt;</description><pubDate>Wed, 02 Dec 2026 11:23:45 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;New codecs, each with &lt;code&gt;to&amp;lt;Name&amp;gt;&lt;/code&gt;, &lt;code&gt;from&amp;lt;Name&amp;gt;&lt;/code&gt;, and &lt;code&gt;tryFrom&amp;lt;Name&amp;gt;&lt;/code&gt;:&lt;ul&gt;
&lt;li&gt;Quoted-printable (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc2045&quot;&gt;RFC 2045&lt;/a&gt;): &lt;code&gt;QuotedPrintableCodec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt;,
&lt;code&gt;binary&lt;/code&gt; (escapes CRLF), and &lt;code&gt;header&lt;/code&gt; (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc2047&quot;&gt;RFC 2047&lt;/a&gt; &amp;quot;Q&amp;quot;). Also
&lt;code&gt;toQuotedPrintableBytes&lt;/code&gt;. #17&lt;/li&gt;
&lt;li&gt;UTF-16 and UTF-32: &lt;code&gt;UTF16Codec&lt;/code&gt; and &lt;code&gt;UTF32Codec&lt;/code&gt; with &lt;code&gt;bigEndian&lt;/code&gt;,
&lt;code&gt;littleEndian&lt;/code&gt;, and &lt;code&gt;standard&lt;/code&gt; (writes and reads a byte order mark). The
&lt;code&gt;const&lt;/code&gt; constructor also takes &lt;code&gt;allowMalformed&lt;/code&gt; (malformed input becomes
&lt;code&gt;U+FFFD&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;IMAP modified UTF-7 (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc3501&quot;&gt;RFC 3501&lt;/a&gt;): &lt;code&gt;ImapUtf7Codec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt; and
&lt;code&gt;lenient&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Multibase: the &lt;code&gt;Multibase&lt;/code&gt; enum covers the multibase table except
&lt;code&gt;proquint&lt;/code&gt; and &lt;code&gt;base256emoji&lt;/code&gt;; &lt;code&gt;Multibase.of&lt;/code&gt; detects the prefix.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add the line-wrapped &lt;code&gt;Base64Codec.mime&lt;/code&gt; (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc2045&quot;&gt;RFC 2045&lt;/a&gt;, 76 + CRLF),
&lt;code&gt;Base64Codec.pem&lt;/code&gt; (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc7468&quot;&gt;RFC 7468&lt;/a&gt;, 64 + LF), and &lt;code&gt;Base64Codec.wrapped&lt;/code&gt;. Their
decoders skip every character outside the alphabet, &lt;code&gt;-&lt;/code&gt; and &lt;code&gt;_&lt;/code&gt; included.&lt;/li&gt;
&lt;li&gt;Support chunked conversion (&lt;code&gt;bind&lt;/code&gt;) on all encoders and decoders except
Base-36, Base-58, Base-62, and Base-85 &lt;code&gt;ipv6&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Speed up &lt;code&gt;fromBigInt&lt;/code&gt; (6-11x on the VM, up to 2x on the web) and &lt;code&gt;fromUtf8&lt;/code&gt;
of short ASCII text (17% at 32 bytes).&lt;/li&gt;
&lt;li&gt;Streaming Base-8 holds its input as bytes, using about 7x less memory
(936 MB -&amp;gt; 128 MB peak for a 32 MB stream), and runs 6x faster.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;UTF16Encoder.encode&lt;/code&gt; writes into an exact-size buffer instead of a 2x one
trimmed by a copy.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ByteCollector&lt;/code&gt;: add &lt;code&gt;multibase([base])&lt;/code&gt;, &lt;code&gt;utf16()&lt;/code&gt; and &lt;code&gt;utf32()&lt;/code&gt;, and a
&lt;code&gt;codec:&lt;/code&gt; parameter on &lt;code&gt;base32()&lt;/code&gt; and &lt;code&gt;base64()&lt;/code&gt; for the other alphabets
(Crockford, z-base-32, geohash, bcrypt, MIME, ...).&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>convertlib 3.7.0</title><link>https://bitanon.dev/blog/convertlib-3-7-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-7-0/</guid><description>ByteCollector.bigInt() now defaults to Endian.big, matching number(). Pass endian: Endian.little to get the old values. The top-level toBigInt still defaults to little endian.</description><pubDate>Tue, 01 Dec 2026 18:17:06 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;[&lt;strong&gt;Breaking Changes&lt;/strong&gt;]&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ByteCollector.bigInt()&lt;/code&gt; now defaults to &lt;code&gt;Endian.big&lt;/code&gt;, matching
&lt;code&gt;number()&lt;/code&gt;. Pass &lt;code&gt;endian: Endian.little&lt;/code&gt; to get the old values. The
top-level &lt;code&gt;toBigInt&lt;/code&gt; still defaults to little endian.&lt;/li&gt;
&lt;li&gt;The hex, octal, and UTF-8 decoders now throw a &lt;code&gt;FormatException&lt;/code&gt; on input
values outside &lt;code&gt;0..255&lt;/code&gt;. They used to keep only the low 8 bits, so
&lt;code&gt;fromUtf8([0x141])&lt;/code&gt; returned &lt;code&gt;&amp;quot;A&amp;quot;&lt;/code&gt;. Use &lt;code&gt;allowMalformed: true&lt;/code&gt; or
&lt;code&gt;UTF8Codec.lenient&lt;/code&gt; to keep the old UTF-8 behavior.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;New codecs. Each one comes with &lt;code&gt;to&amp;lt;Name&amp;gt;&lt;/code&gt;, &lt;code&gt;from&amp;lt;Name&amp;gt;&lt;/code&gt;, and
&lt;code&gt;tryFrom&amp;lt;Name&amp;gt;&lt;/code&gt;, and all except Punycode and Bech32 also have
&lt;code&gt;to&amp;lt;Name&amp;gt;Bytes&lt;/code&gt;:&lt;ul&gt;
&lt;li&gt;Base-36: &lt;code&gt;Base36Codec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt; (lowercase) and &lt;code&gt;upper&lt;/code&gt;. Decoding
accepts either case.&lt;/li&gt;
&lt;li&gt;Base-45 (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc9285&quot;&gt;RFC 9285&lt;/a&gt;): &lt;code&gt;Base45Codec.standard&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Base-58: &lt;code&gt;Base58Codec&lt;/code&gt; with the Bitcoin (&lt;code&gt;standard&lt;/code&gt;), Flickr (&lt;code&gt;flickr&lt;/code&gt;),
and Ripple (&lt;code&gt;ripple&lt;/code&gt;) alphabets.&lt;/li&gt;
&lt;li&gt;Base-62: &lt;code&gt;Base62Codec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt; (&lt;code&gt;0-9A-Za-z&lt;/code&gt;) and &lt;code&gt;lowerFirst&lt;/code&gt;
(&lt;code&gt;0-9a-zA-Z&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Base-85: &lt;code&gt;Base85Codec&lt;/code&gt; with Ascii85 (&lt;code&gt;standard&lt;/code&gt;), Z85 (&lt;code&gt;z85&lt;/code&gt;), the git
alphabet (&lt;code&gt;git&lt;/code&gt;), and the &lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc1924&quot;&gt;RFC 1924&lt;/a&gt; IPv6 form (&lt;code&gt;ipv6&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Bech32 (BIP-173) and Bech32m (BIP-350): &lt;code&gt;Bech32Codec&lt;/code&gt; with &lt;code&gt;bech32&lt;/code&gt;,
&lt;code&gt;bech32m&lt;/code&gt;, and &lt;code&gt;lightning&lt;/code&gt; (no 90-character limit), decoding to
&lt;code&gt;Bech32Data&lt;/code&gt;. SegWit addresses get &lt;code&gt;SegwitCodec&lt;/code&gt;, &lt;code&gt;SegwitAddress&lt;/code&gt;,
&lt;code&gt;toSegwitAddress&lt;/code&gt;, &lt;code&gt;fromSegwitAddress&lt;/code&gt;, and &lt;code&gt;tryFromSegwitAddress&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Percent-encoding (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc3986&quot;&gt;RFC 3986&lt;/a&gt;): &lt;code&gt;PercentCodec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt; (unreserved
characters only), &lt;code&gt;component&lt;/code&gt; (like &lt;code&gt;Uri.encodeComponent&lt;/code&gt;), &lt;code&gt;form&lt;/code&gt; (like
&lt;code&gt;Uri.encodeQueryComponent&lt;/code&gt;, with &lt;code&gt;+&lt;/code&gt; for a space), and
&lt;code&gt;PercentCodec.custom&lt;/code&gt; for your own set of unreserved characters. Unlike
&lt;code&gt;Uri&lt;/code&gt;, it encodes any bytes, not only UTF-8.&lt;/li&gt;
&lt;li&gt;Punycode (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc3492&quot;&gt;RFC 3492&lt;/a&gt;): &lt;code&gt;PunycodeCodec&lt;/code&gt; with &lt;code&gt;standard&lt;/code&gt;, and &lt;code&gt;domain&lt;/code&gt; for
the &lt;code&gt;xn--&lt;/code&gt; labels of internationalized domain names.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Base-36, Base-58, and Base-62 write each leading zero byte as the
alphabet&amp;#39;s first character (&lt;code&gt;0&lt;/code&gt;, or &lt;code&gt;1&lt;/code&gt; in Bitcoin Base-58), so leading
zeros survive a roundtrip.&lt;/li&gt;
&lt;li&gt;Export the &lt;code&gt;RadixEncoder&lt;/code&gt; and &lt;code&gt;RadixDecoder&lt;/code&gt; base classes, which convert
bytes to and from any radix up to 255. Base-36, Base-58, and Base-62 are
built on them.&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;Base64Codec.imap&lt;/code&gt; alphabet (&lt;code&gt;A-Za-z0-9+,&lt;/code&gt;, not padded), the
modified Base-64 of IMAP mailbox names (&lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc3501&quot;&gt;RFC 3501&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;base36()&lt;/code&gt;, &lt;code&gt;base45()&lt;/code&gt;, &lt;code&gt;base58()&lt;/code&gt;, &lt;code&gt;base62()&lt;/code&gt;, &lt;code&gt;base85()&lt;/code&gt;, and
&lt;code&gt;bech32(hrp)&lt;/code&gt; to &lt;code&gt;ByteCollector&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;allowMalformed&lt;/code&gt; to &lt;code&gt;fromUtf8&lt;/code&gt;, &lt;code&gt;tryFromUtf8&lt;/code&gt;, and
&lt;code&gt;ByteCollector.utf8()&lt;/code&gt;, and the &lt;code&gt;UTF8Codec.lenient&lt;/code&gt; codec. They clip
out-of-range values and decode ill-formed UTF-8 to &lt;code&gt;U+FFFD&lt;/code&gt;, as
&lt;code&gt;dart:convert&lt;/code&gt; does, instead of throwing.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ByteCollector.utf8()&lt;/code&gt; now decodes with &lt;code&gt;fromUtf8&lt;/code&gt; instead of
&lt;code&gt;dart:convert&lt;/code&gt;. It accepts and rejects the same bytes, but its error
messages now name the failing byte and its position.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;UTF8Decoder.decode&lt;/code&gt; now accepts any &lt;code&gt;List&amp;lt;int&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;fromHex&lt;/code&gt; accepting &lt;code&gt;:;&amp;lt;=&amp;gt;?&lt;/code&gt; as the digits &lt;code&gt;A&lt;/code&gt;-&lt;code&gt;F&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;CryptDataBuilder.build&lt;/code&gt; sharing its parameter map with the built
&lt;code&gt;CryptData&lt;/code&gt;, so later &lt;code&gt;param&lt;/code&gt; calls changed the built value.&lt;/li&gt;
&lt;li&gt;Speed up UTF-8 encoding and decoding on the VM, especially for ASCII text.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>hashlib 2.4.4</title><link>https://bitanon.dev/blog/hashlib-2-4-4/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-4-4/</guid><description>Fixes Argon2 32bit implementation for dart2js</description><pubDate>Fri, 20 Nov 2026 22:11:12 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Fixes Argon2 32bit implementation for dart2js&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>hashlib 2.4.3</title><link>https://bitanon.dev/blog/hashlib-2-4-3/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-4-3/</guid><description>Migrate away from deprecated dart.library.js conditional imports</description><pubDate>Sat, 14 Nov 2026 14:36:35 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Migrate away from deprecated dart.library.js conditional imports&lt;/li&gt;
&lt;li&gt;Optimise Argon2 on the Web/JS platform by replacing &lt;code&gt;BigInt&lt;/code&gt; arithmetic in
the compression function with 32-bit integer math.&lt;/li&gt;
&lt;li&gt;Improve the benchmark harness (&lt;code&gt;benchmark/_base.dart&lt;/code&gt;): it now reports the
median per-iteration time sampled across ~25ms batches instead of the
arithmetic mean, making results robust against GC pauses and keeping each
batch well above the coarsened web timer resolution. Benchmark tooling only;
no library code or output is affected.&lt;/li&gt;
&lt;li&gt;Bump &lt;code&gt;convertlib&lt;/code&gt; to &lt;code&gt;^3.6.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>cipherlib 0.7.2</title><link>https://bitanon.dev/blog/cipherlib-0-7-2/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-7-2/</guid><description>Fix AES-GCM producing wrong ciphertext on dart2wasm for messages of about 1 MiB or larger (#28). The block counter is stored in a Uint8List view over another buffer, and…</description><pubDate>Mon, 27 Jul 2026 14:56:14 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;🐛 Fix &lt;strong&gt;AES-GCM&lt;/strong&gt; producing wrong ciphertext on &lt;code&gt;dart2wasm&lt;/code&gt; for messages of
about 1 MiB or larger
(&lt;a href=&quot;https://github.com/bitanon/cipherlib/issues/28&quot;&gt;#28&lt;/a&gt;). The block counter is
stored in a &lt;code&gt;Uint8List&lt;/code&gt;
view over another buffer, and dart2wasm skips the modulo-256 truncation when
such a view is assigned an out-of-range value, so &lt;code&gt;counter[i]++&lt;/code&gt; let the carry
bleed into the neighbouring byte. From the first 32-bit carry onward the
keystream desynchronised, silently breaking interoperability with every other
platform (and with other AES-GCM implementations). All stored counter bytes
are now masked explicitly.&lt;/li&gt;
&lt;li&gt;✅ The &lt;code&gt;inc32&lt;/code&gt; counter behaviour is now pinned against raw AES-ECB at every
byte-carry boundary, plus an end-to-end check across the 1 MiB boundary, and
the &lt;code&gt;dart2wasm&lt;/code&gt; suite runs on every push instead of only at release time.&lt;/li&gt;
&lt;li&gt;✅ New cross-cutting &lt;code&gt;test/counter_boundary_test.dart&lt;/code&gt; asserts counter
continuity — block &lt;code&gt;j&lt;/code&gt; of a run started at counter &lt;code&gt;C&lt;/code&gt; equals block &lt;code&gt;0&lt;/code&gt; of a
run started at &lt;code&gt;C + j&lt;/code&gt; — for AES/Twofish/Blowfish CTR, ChaCha20 (32- and
64-bit counters), XChaCha20, Salsa20 and XSalsa20. Because the starting
counter is an input, this reaches the 32- and 64-bit carries that no
achievable message length could walk to, alongside a 1 MiB run per cipher.&lt;/li&gt;
&lt;li&gt;Improve the benchmark harness (&lt;code&gt;benchmark/_base.dart&lt;/code&gt;): it now reports the
median per-iteration time sampled across ~25ms batches instead of the
arithmetic mean, making results robust against GC pauses and keeping each
batch well above the coarsened web timer resolution. Benchmark tooling only;
no library code or output is affected.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>convertlib 3.6.1</title><link>https://bitanon.dev/blog/convertlib-3-6-1/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-6-1/</guid><description>Update README.md for the 3.6.0 API: the to&lt;Name&gt;Bytes byte encoders, the non-throwing tryFrom&lt;Name&gt; decoders, constantTimeEquals, the exported converter base classes, and the…</description><pubDate>Wed, 22 Jul 2026 18:37:07 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Update &lt;code&gt;README.md&lt;/code&gt; for the 3.6.0 API: the &lt;code&gt;to&amp;lt;Name&amp;gt;Bytes&lt;/code&gt; byte encoders, the
non-throwing &lt;code&gt;tryFrom&amp;lt;Name&amp;gt;&lt;/code&gt; decoders, &lt;code&gt;constantTimeEquals&lt;/code&gt;, the exported
converter base classes, and the case-insensitive Crockford decoding.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>convertlib 3.6.0</title><link>https://bitanon.dev/blog/convertlib-3-6-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-6-0/</guid><description>CipherlibConverter -&gt; BitConverter (the exported bit-converter base class).</description><pubDate>Wed, 22 Jul 2026 17:36:59 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;[&lt;strong&gt;Breaking Changes&lt;/strong&gt;]&lt;ul&gt;
&lt;li&gt;&lt;code&gt;CipherlibConverter&lt;/code&gt; -&amp;gt; &lt;code&gt;BitConverter&lt;/code&gt; (the exported bit-converter base class).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;BigIntDecoder&lt;/code&gt; narrows from &lt;code&gt;Converter&amp;lt;BigInt, Iterable&amp;lt;int&amp;gt;&amp;gt;&lt;/code&gt; to
&lt;code&gt;Converter&amp;lt;BigInt, Uint8List&amp;gt;&lt;/code&gt;; &lt;code&gt;BigIntCodec&lt;/code&gt; decoders now return a &lt;code&gt;Uint8List&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Export the &lt;code&gt;ByteEncoder&lt;/code&gt;, &lt;code&gt;ByteDecoder&lt;/code&gt;, &lt;code&gt;AlphabetEncoder&lt;/code&gt;, and &lt;code&gt;AlphabetDecoder&lt;/code&gt;
base classes, previously part of the API surface but not reachable through
&lt;code&gt;package:convertlib/convertlib.dart&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;constantTimeEquals&lt;/code&gt;, a top-level constant-time byte comparison for
verifying MACs and digests without wrapping them in a &lt;code&gt;ByteCollector&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;toHexBytes&lt;/code&gt;, &lt;code&gt;toBinaryBytes&lt;/code&gt;, &lt;code&gt;toOctalBytes&lt;/code&gt;, &lt;code&gt;toBase32Bytes&lt;/code&gt;, and
&lt;code&gt;toBase64Bytes&lt;/code&gt;, returning the encoded ASCII output as a &lt;code&gt;Uint8List&lt;/code&gt; without
the intermediate &lt;code&gt;String&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add non-throwing decoders &lt;code&gt;tryFromHex&lt;/code&gt;, &lt;code&gt;tryFromBinary&lt;/code&gt;, &lt;code&gt;tryFromOctal&lt;/code&gt;,
&lt;code&gt;tryFromBase32&lt;/code&gt;, &lt;code&gt;tryFromBase64&lt;/code&gt;, &lt;code&gt;tryFromUtf8&lt;/code&gt;, and &lt;code&gt;tryFromBigInt&lt;/code&gt;, which
return &lt;code&gt;null&lt;/code&gt; instead of throwing a &lt;code&gt;FormatException&lt;/code&gt; on invalid input.&lt;/li&gt;
&lt;li&gt;Fix the UTF-8 encoder emitting invalid bytes for scalar code points in
&lt;code&gt;U+10000..U+10FFFF&lt;/code&gt;; &lt;code&gt;UTF8Encoder.convert&lt;/code&gt; now uses the 4-byte form (the public
&lt;code&gt;toUtf8&lt;/code&gt; was unaffected). Verified against &lt;code&gt;dart:convert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Make the Crockford Base-32 decoder case-insensitive and decode the ambiguous
letters &lt;code&gt;I&lt;/code&gt;/&lt;code&gt;i&lt;/code&gt;/&lt;code&gt;L&lt;/code&gt;/&lt;code&gt;l&lt;/code&gt; as &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;O&lt;/code&gt;/&lt;code&gt;o&lt;/code&gt; as &lt;code&gt;0&lt;/code&gt;. Encoding output is unchanged.&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;ByteCollector.number&lt;/code&gt; truncating values wider than 32 bits on the web; it
now accumulates with multiplication and is exact up to &lt;code&gt;2^53&lt;/code&gt; (VM unchanged).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ByteCollector.isEqual&lt;/code&gt; returns &lt;code&gt;false&lt;/code&gt; for a [String] that is not valid
hexadecimal instead of throwing a &lt;code&gt;FormatException&lt;/code&gt;, matching its contract.&lt;/li&gt;
&lt;li&gt;Add value-based &lt;code&gt;==&lt;/code&gt; and &lt;code&gt;hashCode&lt;/code&gt; to &lt;code&gt;CryptData&lt;/code&gt;; a null and an empty
&lt;code&gt;params&lt;/code&gt; map now compare equal (both encode to the same string).&lt;/li&gt;
&lt;li&gt;PHC/crypt: allow empty parameter values (e.g. &lt;code&gt;$id$data=&lt;/code&gt;), and fix the decoder
mis-classifying a comma-containing &lt;code&gt;v=...&lt;/code&gt; segment as the version.&lt;/li&gt;
&lt;li&gt;Speed up &lt;code&gt;fromBase32&lt;/code&gt;/&lt;code&gt;fromBase64&lt;/code&gt; decoding and the generic &lt;code&gt;AlphabetEncoder&lt;/code&gt; by
removing extra allocations and passes; output is byte-identical.&lt;/li&gt;
&lt;li&gt;Clarify the &lt;code&gt;FormatException&lt;/code&gt; message for non-canonical encoded input:
&lt;code&gt;&amp;#39;Invalid length&amp;#39;&lt;/code&gt; is now &lt;code&gt;&amp;#39;Invalid length or non-zero trailing bits&amp;#39;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>cipherlib 0.7.1</title><link>https://bitanon.dev/blog/cipherlib-0-7-1/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-7-1/</guid><description>Bump hashlib to ^2.4.2.</description><pubDate>Wed, 08 Jul 2026 17:03:38 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Bump &lt;code&gt;hashlib&lt;/code&gt; to &lt;code&gt;^2.4.2&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>hashlib 2.4.2</title><link>https://bitanon.dev/blog/hashlib-2-4-2/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-4-2/</guid><description>Bump convertlib to ^3.5.1</description><pubDate>Wed, 08 Jul 2026 16:53:04 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Bump &lt;code&gt;convertlib&lt;/code&gt; to &lt;code&gt;^3.5.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>cipherlib 0.7.0</title><link>https://bitanon.dev/blog/cipherlib-0-7-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-7-0/</guid><description>Added ML-KEM (NIST FIPS 203) post-quantum cryptography with MLKEM.kem512(), MLKEM.kem768(), and MLKEM.kem1024(), supporting key generation, encapsulation, and decapsulation, with…</description><pubDate>Wed, 08 Jul 2026 16:33:01 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;🔑 Added &lt;strong&gt;ML-KEM&lt;/strong&gt; (NIST FIPS 203) post-quantum cryptography with &lt;code&gt;MLKEM.kem512()&lt;/code&gt;, &lt;code&gt;MLKEM.kem768()&lt;/code&gt;, and &lt;code&gt;MLKEM.kem1024()&lt;/code&gt;, supporting key generation, encapsulation, and decapsulation, with deterministic key generation from a 64-byte seed.&lt;/li&gt;
&lt;li&gt;🧩 Added &lt;code&gt;KEMBase&lt;/code&gt;, &lt;code&gt;KEMKeyPair&lt;/code&gt;, and &lt;code&gt;KEMSecret&lt;/code&gt; core types for key encapsulation mechanisms.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>convertlib 3.5.1</title><link>https://bitanon.dev/blog/convertlib-3-5-1/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-5-1/</guid><description>Widen fromUtf8 to accept any List&lt;int&gt; input instead of requiring a Uint8List. Non-Uint8List inputs are copied to a Uint8List before decoding.</description><pubDate>Wed, 08 Jul 2026 16:26:36 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Widen &lt;code&gt;fromUtf8&lt;/code&gt; to accept any &lt;code&gt;List&amp;lt;int&amp;gt;&lt;/code&gt; input instead of requiring a
&lt;code&gt;Uint8List&lt;/code&gt;. Non-&lt;code&gt;Uint8List&lt;/code&gt; inputs are copied to a &lt;code&gt;Uint8List&lt;/code&gt; before
decoding.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>hashlib 2.4.1</title><link>https://bitanon.dev/blog/hashlib-2-4-1/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-4-1/</guid><description>Replace the hashlibcodecs dependency with its renamed successor convertlib (^3.5.0). The hashlib public API, including package:hashlib/codecs.dart, is unchanged.</description><pubDate>Wed, 08 Jul 2026 15:43:03 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Replace the &lt;code&gt;hashlib_codecs&lt;/code&gt; dependency with its renamed successor &lt;code&gt;convertlib&lt;/code&gt; (&lt;code&gt;^3.5.0&lt;/code&gt;).
The &lt;code&gt;hashlib&lt;/code&gt; public API, including &lt;code&gt;package:hashlib/codecs.dart&lt;/code&gt;, is unchanged.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>convertlib 3.5.0</title><link>https://bitanon.dev/blog/convertlib-3-5-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-5-0/</guid><description>Removes encodeString, decodeString from IterableCodec.</description><pubDate>Wed, 08 Jul 2026 14:47:00 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;[&lt;strong&gt;Breaking Changes&lt;/strong&gt;]&lt;ul&gt;
&lt;li&gt;Removes &lt;code&gt;encodeString&lt;/code&gt;, &lt;code&gt;decodeString&lt;/code&gt; from &lt;code&gt;IterableCodec&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Renames internal abstract class &lt;code&gt;HashlibConverter&lt;/code&gt; to &lt;code&gt;CipherlibConverter&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;CryptDataBuilder.param&lt;/code&gt; to throw an &lt;code&gt;ArgumentError&lt;/code&gt; when the value is
&lt;code&gt;null&lt;/code&gt;, instead of a raw &lt;code&gt;TypeError&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Speed up Base-64 and Base-32 &lt;strong&gt;encoding&lt;/strong&gt; with specialized single-pass encoders.
Base-64 encoding now outperforms &lt;code&gt;dart:convert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Speed up Base-64 and Base-32 &lt;strong&gt;decoding&lt;/strong&gt; with specialized single-pass decoders.
Base-64 decoding now outperforms &lt;code&gt;dart:convert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Speed up &lt;code&gt;toUtf8&lt;/code&gt; using &lt;code&gt;Uint8List&lt;/code&gt; buffer instead of plain &lt;code&gt;List&amp;lt;int&amp;gt;&lt;/code&gt;.
UTF-8 encoding now outperforms &lt;code&gt;dart:convert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Speed up &lt;code&gt;fromUtf8&lt;/code&gt; with a dedicated byte-to-string decoder.
UTF-8 decoding now matches closely with &lt;code&gt;dart:convert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Refactor existing benchmarks and add missing ones. Dropping &lt;code&gt;benchmark_harness&lt;/code&gt;
dependency in favor of custom benchmarking class with better flexibility.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>convertlib 3.4.0</title><link>https://bitanon.dev/blog/convertlib-3-4-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/convertlib-3-4-0/</guid><description>Rename the package from hashlibcodecs to convertlib. The public API is unchanged: update the dependency to convertlib and imports to package:convertlib/convertlib.dart.</description><pubDate>Tue, 07 Jul 2026 20:52:29 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Rename the package from &lt;code&gt;hashlib_codecs&lt;/code&gt; to &lt;code&gt;convertlib&lt;/code&gt;. The public API is
unchanged: update the dependency to &lt;code&gt;convertlib&lt;/code&gt; and imports to
&lt;code&gt;package:convertlib/convertlib.dart&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;hashlib_codecs&lt;/code&gt; package continues to be published as a thin re-export of
&lt;code&gt;convertlib&lt;/code&gt; for backward compatibility, and will be discontinued after a
migration period.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>convertlib</category></item><item><title>cipherlib 0.6.0</title><link>https://bitanon.dev/blog/cipherlib-0-6-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-6-0/</guid><description>Added Blowfish block cipher with ECB, CBC, and CTR modes, supporting variable key sizes from 1 to 56 bytes.</description><pubDate>Tue, 07 Jul 2026 10:54:29 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;🐡 Added &lt;strong&gt;Blowfish&lt;/strong&gt; block cipher with &lt;code&gt;ECB&lt;/code&gt;, &lt;code&gt;CBC&lt;/code&gt;, and &lt;code&gt;CTR&lt;/code&gt; modes, supporting variable key sizes from 1 to 56 bytes.&lt;/li&gt;
&lt;li&gt;🐟 Added &lt;strong&gt;Twofish&lt;/strong&gt; block cipher with &lt;code&gt;ECB&lt;/code&gt;, &lt;code&gt;CBC&lt;/code&gt;, and &lt;code&gt;CTR&lt;/code&gt; modes, supporting 128, 192, and 256-bit keys.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>cipherlib 0.5.0</title><link>https://bitanon.dev/blog/cipherlib-0-5-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-5-0/</guid><description>Added AES-CCM (Counter with CBC-MAC, RFC-3610) support with AES(key).ccm(nonce), accepting a 7 to 13 byte nonce, additional authenticated data, and a configurable tag size.</description><pubDate>Tue, 07 Jul 2026 06:51:13 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;🔐 Added &lt;strong&gt;AES-CCM&lt;/strong&gt; (Counter with CBC-MAC, &lt;a href=&quot;https://datatracker.ietf.org/doc/html/rfc3610&quot;&gt;RFC-3610&lt;/a&gt;) support with &lt;code&gt;AES(key).ccm(nonce)&lt;/code&gt;, accepting a 7 to 13 byte nonce, additional authenticated data, and a configurable tag size.&lt;/li&gt;
&lt;li&gt;🔤 Renamed AEAD extensions to fix a spelling error: &lt;code&gt;ChaCha20ExtentionForPoly1305&lt;/code&gt;, &lt;code&gt;XChaCha20ExtentionForPoly1305&lt;/code&gt;, &lt;code&gt;Salsa20ExtentionForPoly1305&lt;/code&gt;, and &lt;code&gt;XSalsa20ExtentionForPoly1305&lt;/code&gt; are now &lt;code&gt;...ExtensionForPoly1305&lt;/code&gt; (breaking change).&lt;/li&gt;
&lt;li&gt;📝 Corrected the README features table by removing unavailable &lt;code&gt;*Stream&lt;/code&gt; helper functions, and refreshed the embedded usage example.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>hashlib 2.4.0</title><link>https://bitanon.dev/blog/hashlib-2-4-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-4-0/</guid><description>Fix CRC64Params splitting of 64-bit poly, seed, and xorOut values in the custom polynomial constructor.</description><pubDate>Tue, 07 Jul 2026 06:16:52 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Fix &lt;code&gt;CRC64Params&lt;/code&gt; splitting of 64-bit &lt;code&gt;poly&lt;/code&gt;, &lt;code&gt;seed&lt;/code&gt;, and &lt;code&gt;xorOut&lt;/code&gt; values in the custom polynomial constructor.&lt;/li&gt;
&lt;li&gt;New method &lt;code&gt;stringStream&lt;/code&gt; in &lt;code&gt;HashBase&lt;/code&gt;. Deprecates the misspelled &lt;code&gt;stringStraem&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Documents that &lt;code&gt;XXHash64&lt;/code&gt;, &lt;code&gt;XXH3&lt;/code&gt;, and &lt;code&gt;XXH128&lt;/code&gt; are not supported on the web platform.&lt;/li&gt;
&lt;li&gt;Updates the removal target of the deprecated &lt;code&gt;HashRegistry&lt;/code&gt; and &lt;code&gt;BlockHashRegistry&lt;/code&gt; to 4.0.0.&lt;/li&gt;
&lt;li&gt;Update &lt;code&gt;hashlib_codecs&lt;/code&gt; dependency to 3.3.1&lt;/li&gt;
&lt;li&gt;Adds a security policy: &lt;code&gt;SECURITY.md&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>cipherlib 0.4.0</title><link>https://bitanon.dev/blog/cipherlib-0-4-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-4-0/</guid><description>Restored and redesigned stream processing support by refactoring cipher architecture around StreamCipher, AEADStreamCipher, and CipherPair.</description><pubDate>Sat, 25 Apr 2026 11:45:32 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;🌊 Restored and redesigned stream processing support by refactoring cipher architecture around &lt;code&gt;StreamCipher&lt;/code&gt;, &lt;code&gt;AEADStreamCipher&lt;/code&gt;, and &lt;code&gt;CipherPair&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;🔐 Refactored AES modes, ChaCha20, Salsa20, XOR, and AEAD implementations to align behavior across one-shot and stream APIs.&lt;/li&gt;
&lt;li&gt;🛠️ Updated nonce and typed-data internals plus AES cache generation logic for better correctness and maintainability.&lt;/li&gt;
&lt;li&gt;✅ Expanded and updated test coverage across AES modes, stream ciphers, AEAD flows, integration parity, and core cipher behaviors.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>cipherlib 0.3.0</title><link>https://bitanon.dev/blog/cipherlib-0-3-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-3-0/</guid><description>Removed Stream support (It will be available again in later versions).</description><pubDate>Thu, 23 Apr 2026 20:08:53 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Removed Stream support (It will be available again in later versions).&lt;/li&gt;
&lt;li&gt;🛡️ Strengthened input validation for &lt;strong&gt;AES-CBC&lt;/strong&gt; by requiring IV length to be exactly 16 bytes.&lt;/li&gt;
&lt;li&gt;🔒 Improved AEAD verification behavior in &lt;strong&gt;XChaCha20Poly1305&lt;/strong&gt; and &lt;strong&gt;XSalsa20Poly1305&lt;/strong&gt; by throwing &lt;code&gt;StateError&lt;/code&gt; on authentication failure.&lt;/li&gt;
&lt;li&gt;⚙️ Applied security hardening and reliability fixes across AES-GCM, ChaCha20/Salsa20 internals, cipher core helpers, and typed-data utilities.&lt;/li&gt;
&lt;li&gt;✅ Expanded test coverage with additional security and validation tests, including AES-GCM and typed-data cases.&lt;/li&gt;
&lt;li&gt;🧪 Added broader &lt;strong&gt;ChaCha20&lt;/strong&gt; and &lt;strong&gt;Salsa20&lt;/strong&gt; test vectors and scenarios.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>cipherlib 0.2.0</title><link>https://bitanon.dev/blog/cipherlib-0-2-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-2-0/</guid><description>Refactored AES (all modes), ChaCha20, Salsa20, and AEAD internals for improved clarity and maintainability.</description><pubDate>Tue, 21 Apr 2026 22:07:01 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;⚙️ Refactored AES (all modes), ChaCha20, Salsa20, and AEAD internals for improved clarity and maintainability.&lt;/li&gt;
&lt;li&gt;🚀 Improved performance across core cipher paths and benchmark implementations.&lt;/li&gt;
&lt;li&gt;✅ Expanded and reorganized test coverage across AES, stream ciphers, nonce/padding behavior, and cross-library integration tests.&lt;/li&gt;
&lt;li&gt;📊 Revamped benchmarking infrastructure and documentation, including native/compiled benchmark support and updated benchmark reports.&lt;/li&gt;
&lt;li&gt;🛠️ Updated CI/release workflows, refreshed docs/examples, and bumped &lt;code&gt;hashlib&lt;/code&gt; dependency.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item><item><title>hashlib 2.3.4</title><link>https://bitanon.dev/blog/hashlib-2-3-4/</link><guid isPermaLink="true">https://bitanon.dev/blog/hashlib-2-3-4/</guid><description>Update hashlibcodecs dependency to 3.1.2</description><pubDate>Sun, 19 Apr 2026 06:46:23 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;Update &lt;code&gt;hashlib_codecs&lt;/code&gt; dependency to 3.1.2&lt;/li&gt;
&lt;li&gt;Refactor &lt;code&gt;HashDigest&lt;/code&gt; class to extend &lt;code&gt;ByteCollector&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>hashlib</category></item><item><title>cipherlib 0.1.0</title><link>https://bitanon.dev/blog/cipherlib-0-1-0/</link><guid isPermaLink="true">https://bitanon.dev/blog/cipherlib-0-1-0/</guid><description>AES in ECB, CBC, CTR, CFB, OFB, GCM, XTS, IGE, and PCBC modes.</description><pubDate>Fri, 17 Apr 2026 05:03:36 GMT</pubDate><content:encoded>&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;AES&lt;/strong&gt; in ECB, CBC, CTR, CFB, OFB, GCM, XTS, IGE, and PCBC modes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ChaCha20&lt;/strong&gt; and &lt;strong&gt;XChaCha20&lt;/strong&gt; stream ciphers with &lt;strong&gt;Poly1305&lt;/strong&gt; AEAD (&lt;code&gt;ChaCha20Poly1305&lt;/code&gt;, &lt;code&gt;XChaCha20Poly1305&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Salsa20&lt;/strong&gt; and &lt;strong&gt;XSalsa20&lt;/strong&gt; stream ciphers with &lt;strong&gt;Poly1305&lt;/strong&gt; AEAD (&lt;code&gt;Salsa20Poly1305&lt;/code&gt;, &lt;code&gt;XSalsa20Poly1305&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;XOR&lt;/strong&gt; stream cipher helpers.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Release</category><category>cipherlib</category></item></channel></rss>