echo 'SGVsbG8gd29ybGQK' | base64 -decode Encoding fileĬreate a text file for testing: echo 'Hello world' > data.txtĮncode content of a text file and print result in the terminal: base64 data.txtĮncode content of a text file and save result in another file: base64 data.txt > out.txt Decoding fileĬreate a text file that contains Base64 encoded data: echo 'SGVsbG8gd29ybGQK' > encoded_data.txtĭecode content of a text file and print result in the terminal: base64 -decode encoded_data.txtĭecode content of a text file and save result in another file: base64 -decode encoded_data.txt > out. Normally this is required when textual data needs to be transferred over the network or similar media and make sure that data is transferred without any modification. String can be encoded as follows: echo 'Hello world' | base64 Decoding stringįor Base64 decoding use -decode option. Base64 encoding and decoding schemes are commonly used to encode binary data. The base64 command can be used to perform Base64 encoding and decoding. This tutorial shows how to perform Base64 encoding and decoding in Linux. Base64 is an encoding scheme often used for encoding binary data into text that can easily be transferred and stored in media without accidental modification. This tutorial shows how to perform Base64 encoding and decoding in Linux. Published Linux Commands This tutorial will show you how you can encode or decode a base64 string on Linux using the terminal. Base64 is an encoding and decoding scheme that often used to convert binary data to an printable ASCII text format, and vice versa. Base64 Encode and Decode in Linux JLinux 0 Comments 9325 Views Base64 is an encoding and decoding scheme that often used to convert binary data to an printable ASCII text format, and vice versa. Mode: C tab-width: 4 indent-tabs-mode: nil c-basic-offset: 4 - /.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |