implement Base56 and Base58

This commit is contained in:
2026-01-18 22:15:25 +01:00
parent 24c667bc9c
commit 684b6d78ea
4 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
package com.infendro.encoding.numeric
private val alphabet = "23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz".encodeToByteArray()
object Base56 : NumericEncoding(alphabet)

View File

@@ -0,0 +1,5 @@
package com.infendro.encoding.numeric
private val alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".encodeToByteArray()
object Base58 : NumericEncoding(alphabet)