Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12958

PBEWITHHMACSHAANDAES algorithms are not working using jasypt-encryption feature

    XMLWordPrintable

Details

    • % %
    • Hide
      • feature:install jasypt-encryption
      • jasypt:encrypt -a PBEWITHHMACSHA1ANDAES_256 --password s0m3R@nD0mP@ssW0rD "A password-cracker walks into a bar. Orders a beer. Then a Beer. Then a BEER. beer. b33r. BeeR. Be3r. bEeR. bE3R. BeEr"
      Show
      feature:install jasypt-encryption jasypt:encrypt -a PBEWITHHMACSHA1ANDAES_256 --password s0m3R@nD0mP@ssW0rD "A password-cracker walks into a bar. Orders a beer. Then a Beer. Then a BEER. beer. b33r. BeeR. Be3r. bEeR. bE3R. BeEr"

    Description

      List of algorithms that does not work:

      • PBEWITHHMACSHA1ANDAES_128
      • PBEWITHHMACSHA1ANDAES_256
      • PBEWITHHMACSHA224ANDAES_128
      • PBEWITHHMACSHA224ANDAES_256
      • PBEWITHHMACSHA256ANDAES_128
      • PBEWITHHMACSHA256ANDAES_256
      • PBEWITHHMACSHA384ANDAES_128
      • PBEWITHHMACSHA384ANDAES_256
      • PBEWITHHMACSHA512ANDAES_128
      • PBEWITHHMACSHA512ANDAES_256

      these algorithms were working previously. I suspect this is caused by ENTESB-12797
      Error in console: Error executing command: org.jasypt.exceptions.EncryptionOperationNotPossibleException
      log:

      11:51:30.235 ERROR [Karaf local console user karaf] Exception caught while executing command
      org.jasypt.exceptions.EncryptionOperationNotPossibleException: null
      	at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.encrypt(StandardPBEByteEncryptor.java:1001) ~[?:?]
      	at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.encrypt(StandardPBEStringEncryptor.java:655) ~[?:?]
      	at org.jasypt.intf.service.JasyptStatelessService.encrypt(JasyptStatelessService.java:468) ~[?:?]
      	at org.jboss.fuse.jasypt.commands.Encrypt.execute(Encrypt.java:82) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_191]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_191]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              vhais Vratislav Hais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: