V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  song135711  ›  全部回复第 2 页 / 共 2 页
回复总数  31
1  2  
@no1xsyzy golang 写业务代码有点慢, 另外这边开发以 python 为主
@wellsc 都是 io 密集型的任务
2021-03-03 13:24:34 +08:00
回复了 song135711 创建的主题 上海 芳华路 253 弄次卧转租 2200 元
非隔断房,交通便利,紧邻龙阳路芳华路地铁站
2020-08-21 17:01:50 +08:00
回复了 song135711 创建的主题 职场话题 请教下, 统招在职研究生应聘大厂有希望吗
@coderxy 嗯, 需要统招考进去, 学历和学位都有
2020-08-21 16:08:03 +08:00
回复了 natforum 创建的主题 奇思妙想 鉴于很多快递都不送货上门
快递柜或者物业,不就是为了解决最后一百米的缓冲方式吗
2020-08-19 13:10:01 +08:00
回复了 song135711 创建的主题 Python 根据步骤得写 python3 解密代码
不好意思, 解密了
这里是调试用的代码

import base64
import hashlib

from Crypto.Cipher import PKCS1_v1_5
from Crypto.PublicKey import RSA

def red_decrypt():
ciphertext = "i8e96i0wyA3e0J1etuXR/dkDmKvFRlBuIpdSyzcv18VSq2zp2XjW31tOA/FzdcNi/WHJQT9NAPJe6CDQrFylvDx3Z4vhEHMZOzrv88BW6Dk0dc94j+hsRldBBKnMIXaZRDB9Maj1wTu9TTgvb9D+cEonQnDz3qAQHfzbY0Jz0p5WNfiDE3zi17xQeDVQFe0r1N93jRRfLhEZ35pQFImYKAEFopOQBVEpRxbBhFAjPg1V9DEuEwst42rqmjTgX7Xpt6DuazKwy0zCAucA/FcQVfDr9CkwE5pfPO+RQP2Ku2cbd6iB9yqz0GdO60/Z6ljbvNTE7Npbi67QK0CRcs4x2xgqg+D8mfpkc9bnVz++oiW9I2lkH7P71yCNbNwDBkHMqd08juCkyg06a112MAcwwpHdyQdLdSGGx7XfrFOKmg7ZmQG161PE3FiX2t6sLDSTcmyQlwoQvbiYmsV8Qiho4kc1T4R5xMzaivDOsm6dJ/03+tehXDI+UBxh0MznUwU5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DY3Iwre8gEatBJEuF2fJR71F2led4ONbJ2cG8XYFrYTAqTyZzf25JOuI308ITKUbCga8+JDzYxL9EhOXaIN86PEJao6lUWHrrEYXLMpUUU4C8OOA=" # noqa: #501
pem = "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQCqblHfz/2ohTf+QendtBqsTVR4m9iNFr4gkVryMGo5AOGkfzkFLGxbza0+PuI9MDZoMQLsSeijryq4iJ2csEIboshudSUyQ4DvXhamDvR8R6kMCZXFFHvD01JtKyUrlFnIRTMdG7sFEN8XF4Vt9FpqOONMb2GyWc9ieosNfoDBEwIDAQABAoGADHpVPjvd7qRwrAneLUabAu09qplM0Ok1J4p2crx+tAiCr+asoXQi+Gzl95ezb31qWyIZ4uJ3L0mLQpI/nKtlVSTcED0GEan+GhhsdMdB8OojSYdXWk3o/L1PpT6rBZa95Y2tZ64UP9axXyIt0YzNw5SCSpySb0qp6L4EaaUEvyECQQDQfhxDaYEkIrf3+YtZEoaKkyAdqfhGUbXPWuRstRa3BswB2RvMoxkRs74XGIkF+aTHprDfeevAJ+PRb+g8UKixAkEA0UP6Ozay28rhvR0+Me74DMjlqsL7dv2ek5LWYKvNXMJnR9XiF7+a6daOn9kDZQ0VAnXyBe5gpbvCD3jfloz3AwJANk4CspRSbMUWQeKfpw2qOYHkxZU186rovh+gi6gHSJjenkScdwqsRu4YPw/G8OV7Q/1o6GxrOVuqfSy2wq8HoQJALRiUFSydcKYQ7Xseyw3vYHnunFT2cdcH1E+BaUW8tK+kKCPcXDfLP3cgNyxCAgXGsEgQhtyu8Sg8Eq9+p2frVwJBAJyXutx7yplpLE/aozG2go20xePmZRTDDi5yPJLGMcBwTamKeVVNWoy/P9sXHs8xK+ChpK+80ku+akYWDMc0WQ4=\n-----END RSA PRIVATE KEY-----" # noqa: #501
msg = base64.b64decode(ciphertext.encode('utf-8'))
res = []
cipher = PKCS1_v1_5.new(RSA.importKey(pem))
length = 128
for i in range(0, len(msg), length):
content = msg[i:i + length]
ds = cipher.decrypt(content, '')
res.append(ds)
res = "".join(res)

print('解密数据: ', res)
print('签名后数据: ', "signature")
return ""


if __name__ == "__main__":
red_decrypt()
2020-05-28 17:44:37 +08:00
回复了 kmdd33 创建的主题 上海 组个微信群: echo ("上海程序员内推找工作 wechat 群");
bm9uZXJ2ZXI=, 感谢
谢加, bm9uZXJ2ZXI=
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2905 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 00:11 · PVG 08:11 · LAX 16:11 · JFK 19:11
Developed with CodeLauncher
♥ Do have faith in what you're doing.