Skip to content
Michael Mestnik edited this page Jan 28, 2020 · 1 revision

Base 64 as used in Freenet

Freenet uses a variant of Base 64 encoding for its keys to convert a block of bytes (for example a hash) into a URI component.

The encoding we use consists of:

  • The characters A-Z
  • The characters a-z
  • The characters 0-9
  • The character ~
  • The character -

This is an unusual variant according to Wikipedia, but it is used by other apps than Freenet.

It is implemented in src/freenet/support/Base64.java.

Clone this wiki locally