• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tutou
V2EX  ›  程序员

求帮忙,前端 rsa 加密相关

  •  
  •   tutou · Dec 31, 2021 · 1043 views
    This topic created in 1656 days ago, the information mentioned may be changed or developed.
    我们需要使用私钥加密,公钥加密。现在的方案是使用 node 模块的 crypto.privateEncrypt 。但是打包的时候会将整个 crypto 模块都打包进去了(有 600kb ),而且 crypto 这个库本身 tree-shaking 做的还不好有很多重复的 bn.js 。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1305 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:20 · PVG 01:20 · LAX 10:20 · JFK 13:20
    ♥ Do have faith in what you're doing.