Rod Vagg
a791fa9589
fix: math/rand -> crypto/rand
2023-03-15 15:43:10 +11:00
Jorropo
df5b7bc6ee
feat: add UTF-8 support and base256emoji
...
This include fixes for UTF-8 as well as base256emoji encoding (an encoding which actually use UTF-8).
2022-06-09 15:18:49 +10:00
gammazero
2985033078
Fix vet warnings about conversion of int to string
...
Fixes issue #38
2020-11-19 17:38:08 -08:00
Peter Rabbitson
158c1deff1
Base36 implementation
2020-05-23 04:34:44 +02:00
Peter Rabbitson
aa5d547a81
Even more tests/benchmarks, less repetition in-code
2020-05-23 02:51:29 +02:00
Peter Rabbitson
f5fced06c2
Beef up tests before adding new codec
2020-05-22 01:28:10 +02:00
Gowtham Gopalakrishnan
0a49bd57bb
added base2 implementation as per RFC
2019-02-10 16:41:02 +05:30
Kevin Atkinson
ecd5d58562
Gofmt.
2018-08-31 15:01:41 -04:00
Ian Lopshire
5fb339e88a
Improve test coverage
2018-08-23 13:29:45 -04:00
Kevin Atkinson
3ea5c212ef
Add maps for converting from the string repr. to the code and back.
2018-07-27 16:59:01 -04:00
Steven Allen
23774f6467
add benchmarks
2017-12-18 10:08:13 -08:00
Kevin Atkinson
e81eb6473b
Change length of test string to encode
...
to distinguish between padded and unpadded base32 encodings.
2017-08-28 21:33:06 -04:00
Kevin Atkinson
e98e07ec91
Make base16 encoding case preserving.
2017-08-28 21:33:06 -04:00
Kevin Atkinson
8d1441db4b
Make base32 encodings case preserving.
2017-08-28 21:33:06 -04:00
Wigy
374a93370a
Implement Identity encoding
2016-12-22 17:16:05 +01:00
Jakub Sztandera
c264cdd0ae
Use custom Encoding type
...
Previously base variable were having type `int` which could be confusing
as with literal base number (16 for hex).
By using custom base variable I hope to make it more clear than it was
before.
2016-12-21 20:42:49 +01:00
mateon1
8e28da0e2a
Updated codes to values from csv, added padded b32
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl >
2016-12-12 09:01:18 +01:00
mateon1
3d3cb9341e
Added support for more base encodings
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl >
2016-11-27 23:56:23 +01:00
Jeromy
ed7d4b3b12
guard against empty strings
2016-10-24 15:31:20 -07:00
Jeromy
fa50d2d01b
basic implementation
2016-08-22 17:37:43 -07:00