mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-02-28 22:13:33 +00:00
Add ZBase32 encoding function
See: https://tools.ietf.org/html/rfc6189#section-5.1.6
This commit is contained in:
@@ -165,4 +165,11 @@ describe('Util unit tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("Zbase32", function() {
|
||||
it('util.encodeZBase32 encodes correctly', function() {
|
||||
const encoded = openpgp.util.encodeZBase32(openpgp.util.str_to_Uint8Array('test-wkd'));
|
||||
expect(encoded).to.equal('qt1zg7bpq7ise');
|
||||
})
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user