{"image_url":null,"title":"Haskell\u3067RSA","blog_title":"\u3042\u3069\u3051\u306a\u3044\u8a71","provider_url":"https://hatena.blog","height":"190","version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/kazu-yamamoto/","width":"100%","blog_url":"https://kazu-yamamoto.hatenablog.jp/","description":"Haskell \u306b\u306f Integer \u304c\u3042\u308b\u306e\u3067\u3001RSA \u306e\u8a08\u7b97\u306f\u7c21\u5358\u306a\u306e\u3067\u306f\u3068\u601d\u3044\u7acb\u3061\u3001\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002RSA \u306e\u8a08\u7b97\u65b9\u6cd5\u3084\u3001RSA129 \u3092\u77e5\u3089\u306a\u3044\u4eba\u306f\u3001\u307e\u305a\u300c\u306f\u3084\u308f\u304b\u308aRSA\u300d\u3092\u8aad\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002 \u6697\u53f7\u5316\u3068\u5fa9\u53f7\u5316 x^exp (mod n) \u3092\u9ad8\u901f\u306b\u8a08\u7b97\u3059\u308b\u95a2\u6570\u3092\u5b9f\u88c5\u3067\u304d\u308c\u3070\u3001\u6697\u53f7\u5316\u3082\u5fa9\u53f7\u5316\u3082\u7c21\u5358\u3067\u3059\u3002 rsaEncrypt :: Integer -> Integer -> Integer -> Integer rsaEncrypt e n plain = powerMod plain e n rsaDecrypt :: Integer -> Integer -> Integer -> \u2026","url":"https://kazu-yamamoto.hatenablog.jp/entry/20080918/1221720037","author_name":"kazu-yamamoto","published":"2008-09-18 15:40:37","categories":["Haskell"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-yamamoto.hatenablog.jp%2Fentry%2F20080918%2F1221720037\" title=\"Haskell\u3067RSA - \u3042\u3069\u3051\u306a\u3044\u8a71\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}