Support Article
Unable to use the property type as TextEncrypted
SA-39922
Summary
Unable to use the property type as TextEncrypted when implementing site specific cipher.
For more information, refer to: https://community.pega.com/knowledgebase/articles/creating-custom-cipher-pega-platform#specify-site-specific-ciphers-using-runpega-jcecapabilities-prciphergenerator
Error Messages
417 [tp-bio-8080-exec-147] [TABTHREAD1] [] (ngineinterface.service.HttpAPI) ERROR :
Error processing input
com.pega.pegarules.pub.context.CryptographicException: encryptPropertyValue: No site-specific cipher algorithm
at com.pega.pegarules.exec.internal.util.crypto.PRCryptoImpl.encryptPropertyValue(PRCryptoImpl.java:580)
Steps to Reproduce
Unknown
Root Cause
The command to compile and load the JAR file to the database was executed incorrectly. Hence, the class file was not loaded to the database. A site-specific cipher class was required for encryption and since the class was not found, error occurred.
Resolution
Perform the following local-change: Use the below command as a reference to compile and load the JAR file to the database,
compileAndLoad.bat --driver <drive>:\prweb\WEB-INF\lib\ojdbc6.jar --prweb <drive>:\prweb --propfile <drive>:\prweb\WEB-INF\classes\prbootstrap.properties -–basedir <drive>:\prweb –-jarfile Cipher –-codeset customer –-codesetversion 07-01-10 –prprivate “com\site\cipher\encrypt\CustomCipher.java"
select * from PR_Engineclasses where PZJAR = 'Cipher.jar'
Published August 19, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.