Skip to content

提一些优化建议和参考 #4

@soulteary

Description

@soulteary

出于相同需求,也“被迫”实现了这么一个模块,看到作者博客中文末的信息,特意上来留个言。

有几个建议:

  1. 当前默认没有实现针对有密码私钥的处理,可以参考原文中参考的 lua 模块实现,也可以参考我 issue 文末提到的文章中的解决方式。
  2. 当前模块参考老外的实现,只是 demo,缺少对于外部引用变量的清理操作,建议添加。
  3. 可以考虑区别对待公钥和私钥对象的创建。
  4. 可以考虑参考文章进一步实现一个 nginx 模块,在资源利用率上会有更大的提升。

完整记录: https://soulteary.com/2021/08/16/write-nginx-module-for-rsa-encryption-and-decryption.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions