{"published":"2016-06-06 00:08:12","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F20160606%2F1465225692\" title=\"Java\u3067AES - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://kagasu.hatenablog.com/","image_url":null,"author_url":"https://blog.hatena.ne.jp/kagasu/","height":"190","title":"Java\u3067AES","description":"public byte[] AesEncrypt(String str) throws Exception { // IV\u7121\u3057 // \u30d6\u30ed\u30c3\u30af\u6697\u53f7\u30e2\u30fc\u30c9\uff1a ECB // \u30d1\u30c7\u30a3\u30f3\u30b0\uff1a PKCS7 Cipher cipher = Cipher.getInstance(\"AES\"); cipher.init(Cipher.ENCRYPT_MODE, \"0123456789ABCDEF\"); // Key\u306f16\u6587\u5b57(32bit) return cipher.doFinal(str.getBytes()); } public static String EncryptAES (String str) \u2026","version":"1.0","type":"rich","author_name":"kagasu","provider_url":"https://hatena.blog","url":"https://kagasu.hatenablog.com/entry/20160606/1465225692","provider_name":"Hatena Blog","categories":["Java"],"blog_title":"\u5099\u5fd8\u9332"}