Base64

> Software Security

1 - About

Base64 is often used with key and certificate to have a portable version of the data between system (get rid of EOL difference for instance)

Advertising

3 - Management

3.1 - Encoder

cat my-file | base64

3.2 - Java

String encode = Base64.getEncoder().encodeToString("Nico".getBytes());
byte[] decode = Base64.getDecoder().decode(encode);
System.out.println(new String(decode,StandardCharsets.UTF_8));
Nico
security/base64.txt · Last modified: 2019/05/05 17:43 by gerardnico