28
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Shellでもbase64

Last updated at Posted at 2013-02-12

この記事は最終更新から1年以上経過しています。 気をつけてね。

GNU coreutilsパッケージに含まれるbase64コマンドはbase64のエンコード/デコードが出来る。

pemファイルを動的なコンフィグに格納する際などに使える。

エンコード

$ echo -n "giraffi" | base64            
Z2lyYWZmaQ==

デコード

$ echo -n "Z2lyYWZmaQo=" | base64 -d
giraffi

大概のディストリビューションに入ってるかと思う。

28
18
3

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
28
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?