Typically knowledge can’t be saved or introduced in plain textual content on account of safety causes. For this, it is extremely widespread to make use of encoding techniques; this consists of taking a bit of knowledge like a letter or phrase and changing it into symbols that appears unreadable. Decoding is the alternative course of, taking the encoded symbols and changing them again into one thing that is human readable. Let’s examine a few of the most typical encoding and decoding techniques used these days.
The thought behind this encoding is to make use of 64 characters which are widespread throughout encoding techniques and are additionally printable, most typical base64 variations use alphanumeric characters (A-Z
, a-z
, 0-9
) for the primary 62 values and a few mixture of a plus signal (+
), a ahead slash (/
)for the final 2 characters and maybe an equal signal (=
) for padding.
Instance
Unique: hi there world
Base64: aGVsbG8gd29ybGQ=
On this system, knowledge is encoded in 4-bit sequences utilizing 16 symbols from the ASCII character set, mostly used characters are letters A
to F
(typically lowercase a-f
) and the Arabic numerals or digits 0-9
.
Instance
Unique: hi there world
Hex (Base16): 68656c6c6f20776f726c640a
Extra of a easy substitution shift that consists of taking an alphabet letter and changing it with a letter 13 positions down the alphabet (different numbers of positions can be utilized); that is also referred to as the Caesar Cypher because it was utilized by Julius Caesar in his non-public correspondence in historical Rome.
Instance
Unique: hi there world
ROT13: uryyb jbeyq
These encodings are generally utilized in net growth, cryptography, and e-mail encryption. We hope this submit can present a primary understanding of those encodings and the way they rework knowledge.
Try this submit on Artwork of Code: https://artofcode.tech/common-encoding-and-decoding-systems/