-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 敏感信息存储支持国密 #2055 #2096
feat: 敏感信息存储支持国密 #2055 #2096
Conversation
jsonwan
commented
May 30, 2023
- 基于SDK封装对称加密服务;
- 支持默认+具体场景两种粒度指定加密算法;
- 支持通过ServiceLoader的方式自行拓展加解密方法;
- 支持加密算法切换。
c09952f
to
066ad29
Compare
基于SDK封装对称加密服务
脚本敏感参数场景实现
密文变量场景实现
DB账号密码场景实现
升级SDK版本,支持非对称加密
支持使用【加密类型】配置项指定使用经典算法/国密算法
升级SDK版本,导入导出相关场景改造
升级SDK版本,优化代码结构
066ad29
to
e68f7f0
Compare
@Getter | ||
@ToString | ||
public class CryptoException extends RuntimeException { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个类是否可以放到 common-crypto 模块中?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改为使用SDK中的CryptoException类。
} | ||
} | ||
|
||
public static void encrypt(InputStream in, OutputStream out, String password) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
定义了 CryptoException, 这里可以考虑抛出 CryptoException 这种运行时异常。ASEUtils,RSAUtils 其他方法类似
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改