springboot 配置加密,jasypt加解密命令
位置:Maven仓库中\org\jasypt\jasypt\1.9.3
java -cp jasypt-1.9.3.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input=123456 password=mysalt algorithm=PBEWithMD5andDES
----ENVIRONMENT-----------------
Runtime: Oracle Corporation Java HotSpot™ 64-Bit Server VM 25.341-b10
----ARGUMENTS-------------------
algorithm: PBEWithMD5andDES
input: 123456
password: mysalt
----OUTPUT----------------------
mCmYjdXpYwSVt4Vp6zq6Yw==
java -cp jasypt-1.9.3.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input=mCmYjdXpYwSVt4Vp6zq6Yw== password=mysalt algorithm=PBEWithMD5andDES
----ENVIRONMENT-----------------
Runtime: Oracle Corporation Java HotSpot™ 64-Bit Server VM 25.341-b10
----ARGUMENTS-------------------
algorithm: PBEWithMD5andDES
input: mCmYjdXpYwSVt4Vp6zq6Yw==
password: mysalt
----OUTPUT----------------------
123456
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)