'java.security.NoSuchAlgorithmException: PBEWITHSHA256AND128BITAES-CBC-BC SecretKeyFactory not available'

Problem Description

You enabled password encryption by following the Talend Help Center, Enabled password encryption documentation, and you configured the blueprint datasource file with encrypted properties by following the OSGI Configuration Parameters for Blueprint Components documentation.


However, deploying the blueprint datasource file in Runtime fails with the following error:

Caused by: java.security.NoSuchAlgorithmException: PBEWITHSHA256AND128BITAES-CBC-BC SecretKeyFactory not available
at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:122) ~[?:?]
at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:168) ~[?:?]
at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.initialize(StandardPBEByteEncryptor.java:703) ~[?:?]



Root Cause

The security provider, in this case, BouncyCastle, is not deployed.



Configure the security provider by following the Talend Help Center, Deploying security providers documentation.


You can use the JAR, in this case, bcprov-jdk15on-1.60.jar, from the <RUNTIME>/system/org/bouncycastle/bcprov-jdk15on/1.60/ folder.

Version history
Revision #:
4 of 4
Last update:
‎10-22-2019 07:01 AM
Updated by:
Community Manager

This article will be merged into the Talend Help Center per DOCT-12794.