Encoding and Decoding of Strings Base64

Untuk encode :

echo -n 'Hallo, Dunia' | base64
SGFsbG8sIER1bmlh

Untuk Decode

base64 -d <<< SGFsbG8sIER1bmlh
Hallo, Dunia

Menggunakan OpenSSL :

Untuk Encode :

openssl base64 <<< 'Hello, World!'
SGVsbG8sIFdvcmxkIQo=

Untuk Decode :

openssl base64 -d <<< SGVsbG8sIFdvcmxkIQo=
Hello, World!

Leave a Reply

Your email address will not be published. Required fields are marked *