You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2022. It is now read-only.
Expanding on #1 , in theory, this package should support arbitrary alphabets as well. It will require either major changes to math/big or a new sub-package.
This may or may not have to include non-ASCII characters.
Further, there is a chance it will require a breaking change in the interface, if this alphabet input is added to NewCipher. Alternatively, a new function on Cipher called SetAlphabet could be added.
funcNewCipher(radixint, maxTLenint, key []byte, tweak []byte) (Cipher, error) {
...// defaultsf.alphabet="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"f.radix=62
}
func (fCipher) SetAlphabet(alphabetstring, radixint) {
// error checking on alphabet and radix// ex: alphabet can't be "12345" and radix be 9...f.alphabet=alphabetf.radix=radix
}