Manual encryption and decryption method of jasypt
This article mainly explains the method of manual encryption and decryption of jasypt. The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the method of manual encryption and decryption of jasypt.
Manual encryption and decryption
When using Jaspyt, you may need to create a ciphertext, but the general key is not placed in the configuration file. You can usually solve this problem through junit, but in practice, you need to run some environments through junit, which is relatively troublesome. In this case, you can encrypt it with jaspyt.jar directly.
# # encryption method java-cp.. / libs/jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input= "{plaintext}" password= {key} algorithm= {encryption algorithm} # # decryption method java-cp.. / libs/jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input= "{ciphertext}" password= {key} algorithm= {encryption algorithm} Thank you for reading. This is the content of "jasypt manual encryption and decryption method". After the study of this article, I believe that we have a deeper understanding of the method of manual encryption and decryption of jasypt, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!