{"height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/a1026302/20210427/20210427220240.png","title":"\u6697\u53f7\u5316\u51e6\u7406\u3067\u300cAttributeError: module 'time' has no attribute 'clock'\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u308b","author_url":"https://blog.hatena.ne.jp/a1026302/","author_name":"a1026302","categories":["Python","Python-\u30a8\u30e9\u30fc\u5bfe\u5fdc"],"provider_name":"Hatena Blog","blog_url":"https://a1026302.hatenablog.com/","blog_title":"\u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0","width":"100%","url":"https://a1026302.hatenablog.com/entry/2021/04/29/140907","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2021%2F04%2F29%2F140907\" title=\"\u6697\u53f7\u5316\u51e6\u7406\u3067\u300cAttributeError: module &#39;time&#39; has no attribute &#39;clock&#39;\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u308b - \u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6697\u53f7\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u30a8\u30e9\u30fc\u3067\u56f0\u308a\u307e\u3057\u305f\u3002 python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f3.8\u3060\u3063\u305f\u306e\u3060\u304c\u3002\u3002\u3002 from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA message = b'1234567890987654321' key = RSA.importKey(open('receiver.pem').read()) cipher = PKCS1_OAEP.new(key) ciphertext = cipher.encrypt(message) Python 3.8\u306e\u30a8\u30e9\u30fc Attr\u2026","type":"rich","version":"1.0","published":"2021-04-29 14:09:07","provider_url":"https://hatena.blog"}