You can encode any data in base64 using the openssl "enc" command. Suppose I have a file named "hello" that contains the text "hello world". The command

$ openssl enc -base64 -in hello -out hello.b64

will encode the file and output the data to "hello.b64". Check the man pages for the "enc" command to find all sort of other options and encodings that are available. Using the "-d" option, the "enc" command will also decode.


On Oct 11, 2005, at 9:42 AM, Adam Jones wrote:

 I have two 128 bit keys generated by openssl rand. Does openssl provide a way to BASE64 encode those keys?

Reply via email to