如何使用openssl和PBEWithMD5AndDES加密文本?

时间:2017-02-24 10:32:26

标签: openssl jasypt

与算法PBEWithMD5AndDES一起使用jasypt的openssl等效是什么?

使用jasypt的例子:

java -cp ~/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar  org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="contactspassword" password=supersecretz algorithm=PBEWithMD5AndDES                                                   

----ENVIRONMENT-----------------                                                                                                                                                                  
Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.112-b15                                                                                                        
----ARGUMENTS-------------------                                                                                      
algorithm: PBEWithMD5AndDES                                                                                                                                                                        
input: contactspassword                                                                                               
password: supersecretz                                                                              
----OUTPUT----------------------

H4usVG7JPI7wwbUeLUVZ3x+nJY17LCnvlA254v355Cw=

0 个答案:

没有答案
相关问题