Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Base94 encoding and how does it work?

Tags:

encoding

I googled and could not find much information on Base94 encoding. Does anyone has more details about this encoding?

like image 342
Jay P Avatar asked Mar 10 '18 05:03

Jay P


People also ask

What's the point of Base64 encoding?

Base64 encoding schemes are commonly used when there is a need to encode binary data that needs to be stored and transferred over media that are designed to deal with ASCII. This is to ensure that the data remain intact without modification during transport.

What is Base64 encoding and decoding?

Base64 is an encoding and decoding technique used to convert binary data to an American Standard for Information Interchange (ASCII) text format, and vice versa.

How do I know if a string is Base64 encoded?

In base64 encoding, the character set is [A-Z, a-z, 0-9, and + /] . If the rest length is less than 4, the string is padded with '=' characters. ^([A-Za-z0-9+/]{4})* means the string starts with 0 or more base64 groups.

How long does it take to decode Base64 encoded credentials?

How fast can you decode base64 data? On a recent Intel processor, it takes roughly 2 cycles per byte (from cache) when using a fast decoder like the one from the Chrome browser.


1 Answers

Essentially: Base94 encoding takes 9 input bytes of 8 bits each, uses those to construct a 72-bit integer, and then converts that to an 11-digit base-94 number, and encodes that number using the ASCII characters ! (33) through ~ (126).

Here is some example code that someone published on GitHub:

https://gist.github.com/iso2022jp/4054241

like image 123
Todd Lehman Avatar answered Sep 20 '22 23:09

Todd Lehman