Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created May 29, 2019 01:36
Show Gist options
  • Save jkeam/59dc152fb71ff63234ba756b297e0d5c to your computer and use it in GitHub Desktop.
Save jkeam/59dc152fb71ff63234ba756b297e0d5c to your computer and use it in GitHub Desktop.
Encode a file into a base 64 format
#!/bin/bash
# -A doesn't print out newlines and entire file will be on a single line.
openssl base64 -A -in ./input_file -out ./output_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment