LoginSignup
67
47

More than 5 years have passed since last update.

文字列を簡単に base64 エンコードする

Last updated at Posted at 2014-10-10

openssl コマンドを使用すれば、コマンドラインで簡単に base64 エンコード可能

echo -n "XXX" | openssl enc -e -base64

実行結果
eHh4Cg==

-d でデコードも可能

echo 'eHh4Cg==' | openssl enc -d -base64

実行結果
xxx

67
47
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
67
47