Skip to main content

The situation is as follows:

 

We have a generic api that is used to create and update a database that is used for form validation. As part of the creation process we want to put an encrypted version of the client secret in the database.

 

The issue is that when I use the blowfish algorithm, either via the mule properties editor or the secure properties tool jar, I get a different result that with the JCE encrypt via a keystore that uses blowfish.

 

We have is Blowfish CBC in our config for secure properties but as I say, using Blowfish as the algorithm in JCE encrypt I end up with different results.

 

I either need JCE encrypt and what would need to be set in the keystore to have the matching result to using secure properties tool jar, or if I am missing something obvious a way to use secure properties on the fly as dataweave or something.

3 件の回答
  1. 2022年7月7日 17:02

    @Michael Fesser​ Crypto module will not help here. If you wanna achieve the same encryption, you can check below Github repo and you have to use some java classes.

    https://github.com/djuang1/secure-config-properties-api

    https://github.com/djuang1/secure-config-properties-api/blob/master/src/main/java/com/dejim/SecurePropertiesWrapper.java

     

    This is the UI for generating the encrypted key.

     

    https://secure-properties-api.us-e1.cloudhub.io/