{"provider_name":"Hatena Blog","title":" openssl \u306e\u6697\u53f7\u5316\u3068\u540c\u7b49\u306eruby\u3067\u306e\u51e6\u7406","blog_url":"https://takuya-1st.hatenablog.jp/","description":"openssl \u3067\u6697\u53f7\u5316\u3059\u308b\u3068\u4fbf\u5229\u306a\u3093\u3060\u3051\u3069 \u6697\u53f7\u5316\u3092\u304a\u3053\u306a\u3063\u305f\u30c7\u30fc\u30bf\u3092\u305d\u306e\u307e\u307e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d4c\u7531\u3057\u3066\u8aad\u307f\u305f\u3044\u3088\u306d\u3002\u3084\u3063\u3071\u308a\u3002 openssl \u3067\u6697\u53f7\u5316 \u2192 ruby \u3067\u5fa9\u53f7\u5316 openssl enc -e -aes-256-cbc -salt -in test.json -out enc.json -pass password:my_pass \u3053\u308c\u3067\u6697\u53f7\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u3001ruby\u3067\u30c7\u30b3\u30fc\u30c9\u3057\u3066\u307f\u308b passphrase = \"my_pass\" data = open(\"enc.json\", \"r\").read data = data.force_encoding(\"ASCII-8BIT\") s\u2026","image_url":null,"width":"100%","author_name":"takuya_1st","provider_url":"https://hatena.blog","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","categories":["openssl","encryption","ruby","openssl","ruby"],"height":"190","type":"rich","author_url":"https://blog.hatena.ne.jp/takuya_1st/","url":"https://takuya-1st.hatenablog.jp/entry/2015/12/10/155321","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2015%2F12%2F10%2F155321\" title=\" openssl \u306e\u6697\u53f7\u5316\u3068\u540c\u7b49\u306eruby\u3067\u306e\u51e6\u7406 - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2015-12-10 15:53:21","version":"1.0"}