<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>auewe</author_name>
  <author_url>https://blog.hatena.ne.jp/auewe/</author_url>
  <blog_title>余白の書きなぐり</blog_title>
  <blog_url>https://auewe.hatenablog.com/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>追記: (2015/8/3) 大量のはてブが付いたので 続き を書きました。 sshを使用している人は文字列を手軽に暗号化・復号化できるという話。 このテクニックを使えば色々セキュアになるのでおすすめ。 今回はシェルスクリプト中の平文パスワードをセキュアに代替する。 平文パスワードはやめよう シェルスクリプト中でパスワードが必要になったとき、 とりあえず平文で書いてしまいがち。 #!/bin/sh PASSWORD=&quot;hoge&quot; これをセキュアにしたい。 面倒くさいのは嫌なので、なるべく手持ちのツールで暗号化、復号化したい。 ssh用の rsa 秘密鍵と、openssl(大抵の環境に入っている…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fauewe.hatenablog.com%2Fentry%2F2014%2F04%2F14%2F213319&quot; title=&quot;シェルスクリプトの平文パスワードをセキュアにする方法 - 余白の書きなぐり&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-14 21:33:19</published>
  <title>シェルスクリプトの平文パスワードをセキュアにする方法</title>
  <type>rich</type>
  <url>https://auewe.hatenablog.com/entry/2014/04/14/213319</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
