Base64

> Software Security

1 - About

Base64 is a hash that is often used to have a portable version of the data between system (get rid of EOL difference for instance).

It converts binary data in an ASCII string format by translating it into a radix-64 representation.

Advertising

3 - Management

3.1 - Online

You can perform a search on Google to find an encoder or you can go on this one: http://base64-encoder-online.waraxe.us/

3.2 - base64 utility

cat my-file | base64

3.3 - Java

String encode = Base64.getEncoder().encodeToString("Nico".getBytes());
byte[] decode = Base64.getDecoder().decode(encode);
System.out.println(new String(decode,StandardCharsets.UTF_8));
Nico

3.4 - Javascript

With Btoa

let encodedData = window.btoa("Nico");
console.log("Base 64: "+encodedData);
 
var decodedData = window.atob(encodedData);
console.log("Clear Text: "+decodedData)