V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tutou
V2EX  ›  程序员

求帮忙,前端 rsa 加密相关

  •  
  •   tutou · Dec 31, 2021 · 915 views
    This topic created in 1578 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   ·   4364 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 204ms · UTC 00:58 · PVG 08:58 · LAX 17:58 · JFK 20:58
    ♥ Do have faith in what you're doing.