{"id":4271,"date":"2018-08-17T17:21:40","date_gmt":"2018-08-17T08:21:40","guid":{"rendered":"https:\/\/www.climb.co.jp\/blog_dbmoto\/?p=4271"},"modified":"2018-09-21T10:47:47","modified_gmt":"2018-09-21T01:47:47","slug":"dbmoto%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%9a%97%e5%8f%b7%e5%8c%96%e3%81%97%e4%bf%9d%e5%ad%98%e3%81%99%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e7%a7%bb%e8%a1%8c%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/4271","title":{"rendered":"[DBMoto]\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u79fb\u884c\u65b9\u6cd5"},"content":{"rendered":"<p>DBMoto\u306f\u7570\u7a2e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9593\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3067\u3059\u3002\u8907\u88fd\u5143\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u306e\u66f4\u65b0\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u66f4\u65b0\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u5148\u30c6\u30fc\u30d6\u30eb\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3067\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a2d\u5b9a\u3057\u30c7\u30fc\u30bf\u3092\u52a0\u5de5\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6d3b\u7528\u3057\u3001\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u624b\u6cd5\u30923\u30b9\u30c6\u30c3\u30d7\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4272\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image.png\" alt=\"\" width=\"1942\" height=\"836\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image.png 1942w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image-300x129.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image-768x331.png 768w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image-1024x441.png 1024w\" sizes=\"auto, (max-width: 1942px) 100vw, 1942px\" \/><\/a><\/p>\n<p><strong>\u624b\u98061.\u3000\u6697\u53f7\u5316\u95a2\u6570\u306e\u4f5c\u6210<\/strong><\/p>\n<p>DBMoto\u3067\u306f\u3001C#\/VB\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306fAES\u65b9\u5f0f\u306e\u6697\u53f7\u5316\u3092\u884c\u3046\u95a2\u6570\u3092\u5b9f\u88c5\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002\u3053\u3061\u3089\u3092DBMoto\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nusing System;\r\nusing System.Data;\r\nusing DBMotoPublic;\r\nusing DBMotoScript;\r\n\r\nusing System.IO;\r\nusing System.Security.Cryptography;\r\nusing System.Text;\r\n\r\nnamespace DBRS{\r\n\r\n public class GlobalScript : IGlobalScript{\r\n\r\n  public static string Encrypt(string text, string iv, string key){\r\n   using (RijndaelManaged myRijndael = new RijndaelManaged()){\r\n    myRijndael.BlockSize = 128;\r\n    myRijndael.KeySize = 128;\r\n    myRijndael.IV = Encoding.UTF8.GetBytes(iv);\r\n    myRijndael.Key = Encoding.UTF8.GetBytes(key);\r\n\r\n    ICryptoTransform encryptor = myRijndael.CreateEncryptor(myRijndael.Key, myRijndael.IV);\r\n\r\n    byte&#x5B;] encrypted;\r\n    using (MemoryStream mStream = new MemoryStream()){\r\n     using (CryptoStream ctStream = new CryptoStream(mStream, encryptor, CryptoStreamMode.Write)){\r\n      using (StreamWriter sw = new StreamWriter(ctStream)){\r\n        sw.Write(text);\r\n      }\r\n      encrypted = mStream.ToArray();\r\n     }\r\n    }\r\n   return (System.Convert.ToBase64String(encrypted));\r\n   }\r\n  }\r\n }\r\n}\r\n<\/pre>\n<p><strong>\u624b\u98062.\u3000\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001\u8907\u88fd\u5148\u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u3068\u8907\u88fd\u5143\u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u306e\u7d10\u4ed8\u3051\u3092\u884c\u3046\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8a18\u8f09\u3057\u305f\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4e0b\u8a18\u753b\u50cf\u3067\u306f\u3001mail\u30ab\u30e9\u30e0\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u6697\u53f7\u5316\u3092\u884c\u3046Encrypt\u95a2\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4273\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image2.png\" alt=\"\" width=\"811\" height=\"633\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image2.png 811w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image2-300x234.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image2-768x599.png 768w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/a><\/p>\n<p><strong>\u624b\u98063.\u3000\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c<\/strong><\/p>\n<p>\u95a2\u6570\u3092\u8a2d\u5b9a\u3057\u305f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002Encrypt\u95a2\u6570\u3092\u8a2d\u5b9a\u3057\u305f\u30ab\u30e9\u30e0\u306e\u30c7\u30fc\u30bf\u304c\u8907\u88fd\u5148\u30c6\u30fc\u30d6\u30eb\u3067\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4274\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image3.png\" alt=\"\" width=\"552\" height=\"834\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image3.png 552w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2018\/08\/image3-199x300.png 199w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>DBMoto\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f75\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3055\u308c\u305f\u72b6\u614b\u3067\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u500b\u4eba\u60c5\u5831\u3084\u5927\u5207\u306a\u30c7\u30fc\u30bf\u3092\u4fdd\u7ba1\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u79fb\u884c\u3084\u9023\u643a\u7b49\u3067\u3001\u305c\u3072DBMoto\u3092\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b\u540c\u3058\u3088\u3046\u306b\u5fa9\u53f7\u3059\u308b\u95a2\u6570\u3092\u7528\u610f\u9802\u304d\u3001\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u3067\u5fa9\u53f7\u306e\u95a2\u6570\u3092\u8a18\u8ff0\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u6697\u53f7\u5316\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5143\u306b\u623b\u3059\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002\u5fa9\u53f7\u65b9\u6cd5\u306f<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/4281\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DBMoto\u306f\u7570\u7a2e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9593\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3067\u3059\u3002\u8907\u88fd\u5143\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u306e\u66f4\u65b0\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u66f4\u65b0\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u5148\u30c6\u30fc\u30d6\u30eb\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3067\u306f\u3001\u30b9 &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/4271\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4271","post","type-post","status-publish","format-standard","hentry","category-syniti"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/comments?post=4271"}],"version-history":[{"count":9,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4271\/revisions"}],"predecessor-version":[{"id":4297,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4271\/revisions\/4297"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=4271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=4271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=4271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}