Druid 配置加解密工具
druid
阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
项目地址:https://gitcode.com/gh_mirrors/druid/druid
·
对配置文件的密码进行加解密操作
import com.alibaba.druid.filter.config.ConfigTools;
/**
* 测试配置文件密码加解密工具
*/
public class DruidEncryptMain {
public static void main(String[] args) throws Exception {
System.out.println("加密:" + ConfigTools.encrypt("1qaz@WSX..."));
System.out.println("解密:" + ConfigTools.decrypt("JyIB7r25tBdpkJd1Ma2mtvtyL3yTFDpaTGEDQOHmz5SuFUuQy3MU1sUT0TM..."));
}
}
使用场景:
配置文件外置后,敏感信息需要加密,然后在读取配置的时候统一解密
阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
最近提交(Master分支:4 个月前 )
933dee04 - 8 天前
3246166f
- Add constructor with SQLParserFeature support to SparkStatementParser
- Fix SQLParserUtils to pass features parameter to SparkStatementParser, CKStatementParser and StarRocksStatementParser 18 天前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)