如何解决如何在 Jasypt 中使用 Blowfish 算法?
我想在 Jasypt 中使用 Blowfish 算法进行加密。我的代码:
StandardPBEStringEncryptor standardPBEStringEncryptor = new StandardPBEStringEncryptor();
standardPBEStringEncryptor.setPassword("some-random-data");
//if I set algorithm as "PBEWithMD5AndTripleDES" it works
standardPBEStringEncryptor.setAlgorithm("Blowfish");
String encryptedValue = standardPBEStringEncryptor.encrypt("Clear Text");
String decrypt = standardPBEStringEncryptor.decrypt(encryptedValue);
异常:
由:java.security.NoSuchAlgorithmException:Blowfish SecretKeyFactory 不可用
是否可以将 Blowfish 算法用作 Jasypt 的加密算法?
JDK 版本:15.0.1
Jasypt 版本:1.9.3
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。