keyDER = b64decode(pubkey) keyPub = RSA.importKey(keyDER) cipher = Cipher_PKCS1_v1_5.new(keyPub) cipher_text = cipher.encrypt(msg.encode())
確定! 回上一頁