Search notes:

Shell command: base64

base64 encodes and decodes data to/from Base64.
Encoding and decoding data on stdin:
$ echo hello world | base64
aGVsbG8gd29ybGQK

$ echo aGVsbG8gd29ybGQK  | base64 -d
hello world
Encoding and decoding data in a file:
$ echo hello world > /tmp/data
$ base64 /tmp/data
aGVsbG8gd29ybGQK

$ echo aGVsbG8gd29ybGQK > /tmp/data.64
$ base64 -d /tmp/data.64
hello world

See also

Shell commands

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200480, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/base64(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78