{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnodocchi.hatenablog.com%2Fentry%2F2023%2F11%2F11%2F090454\" title=\"RSA\u6697\u53f7\u306e\u3079\u304d\u4e57\u5270\u4f59\u8a08\u7b97 - \u65e5\u3005\u306e\u30e1\u30e2\uff20\u306f\u3066\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"RSA\u6697\u53f7 RSA\u6697\u53f7\u3067\u306f\u3001a^b mod c \u3068\u3044\u3046\u6f14\u7b97\u304c\u4f7f\u308f\u308c\u308b\u3002 \u6697\u53f7\u5316\u53ca\u3073\u5fa9\u53f7\u5316\u306e\u624b\u9806\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002 \u7d20\u6570p, q \uff08\u81ea\u5206\u3067\u6c7a\u3081\u308b\uff09 n = p * q n' = (p - 1) * (q - 1) n' \u3068\u4e92\u3044\u306b\u7d20\u306a\u6570 e (\u81ea\u5206\u3067\u6c7a\u3081\u308b) e * d mod n' = 1 \u3068\u306a\u308b d \uff08 1 < d < n' \u306e\u7bc4\u56f2\u3067\u306f\u552f\u4e00\uff09 \u3092\u6c7a\u3081\u3066\u3001n \u3068 e \u3092\u516c\u958b\u9375\u3068\u3059\u308b\u3002 \u305d\u3057\u3066\u5e73\u6587 M \u306b\u5bfe\u3057\u3001M^e mod n (=C) \u3067\u6697\u53f7\u5316\u3059\u308b\u3002\u5fa9\u53f7\u306f\u3001C^d mod n (=M) \u3067\u884c\u3046\u3002 \u53c2\u8003\uff09 RSA\u6697\u53f7\u306e\u4ed5\u7d44\u307f\u3068\u5b89\u5168\u6027\u30fb\u5177\u4f53\u4f8b | \u9ad8\u6821\u6570\u5b66\u306e\u7f8e\u3057\u3044\u7269\u8a9e RSA\u6697\u53f7\u3067\u300c\u3075\u3063\u304b\u3064\u306e\u3058\u3085\u2026","published":"2023-11-11 09:04:54","categories":["IT","Ruby"],"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/n/nodocchi/20231111/20231111085335.jpg","url":"https://nodocchi.hatenablog.com/entry/2023/11/11/090454","author_name":"nodocchi","blog_url":"https://nodocchi.hatenablog.com/","provider_url":"https://hatena.blog","type":"rich","blog_title":"\u65e5\u3005\u306e\u30e1\u30e2\uff20\u306f\u3066\u306a","height":"190","author_url":"https://blog.hatena.ne.jp/nodocchi/","title":"RSA\u6697\u53f7\u306e\u3079\u304d\u4e57\u5270\u4f59\u8a08\u7b97","version":"1.0","width":"100%","provider_name":"Hatena Blog"}