Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 307 Bytes

File metadata and controls

10 lines (9 loc) · 307 Bytes

Xiang Wang @ 2017-11-16 14:16:29

基础

  • 官网
  • [使用] import rsa pubkey, privkey = rsa.newkeys(2048, poolsize=8) message = 'hello world!'.encode('utf8') crypto = rsa.encrypt(message, pubkey) print(rsa.decrypt(crypto, privkey))