Skip to content

Instantly share code, notes, and snippets.

@alopresto
Created December 13, 2015 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alopresto/6a2273923815a0b24a5c to your computer and use it in GitHub Desktop.
Save alopresto/6a2273923815a0b24a5c to your computer and use it in GitHub Desktop.
Test output from trying multiple PBE ciphers on various security providers
/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/java *.crypto.OpenSSLPBEEncryptorTest,testShouldNotEncryptAndDecryptWithPBELongPasswordWith128BitKeyAndDefaultJCEProvider
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running in limited encryption mode
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Available JCE providers: SUN, SunRsaSign, SunEC, SunJSSE, SunJCE, SunJGSS, SunSASL, XMLDSig, SunPCSC, Apple, BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Password: thisIsABadPassword
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Salt : saltsalt
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Checking algorithm PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SUN
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SUN does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunRsaSign
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunRsaSign does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunEC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunEC does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJSSE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJSSE does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJCE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJCE does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJGSS
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJGSS does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunSASL
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunSASL does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider XMLDSig
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider XMLDSig does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunPCSC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunPCSC does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider Apple
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider Apple does not support cipher PBEWITHMD5AND128BITAES-CBC-OPENSSL
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider BC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Expected error: Illegal key size
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers successfully initialized the cipher:
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers failed to initialize the cipher: BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest -
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Checking algorithm PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SUN
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SUN does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunRsaSign
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunRsaSign does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunEC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunEC does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJSSE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJSSE does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJCE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJCE successfully initialized the cipher -- NOT DESIRED
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJGSS
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJGSS does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunSASL
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunSASL does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider XMLDSig
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider XMLDSig does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunPCSC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunPCSC does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider Apple
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider Apple does not support cipher PBEWithHmacSHA1AndAES_128
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider BC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider BC does not support cipher PBEWithHmacSHA1AndAES_128
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers successfully initialized the cipher: SunJCE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers failed to initialize the cipher:
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest -
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Checking algorithm PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SUN
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SUN does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunRsaSign
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunRsaSign does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunEC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunEC does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJSSE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJSSE does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJCE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Expected error: Illegal key size
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJGSS
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJGSS does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunSASL
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunSASL does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider XMLDSig
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider XMLDSig does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunPCSC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunPCSC does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider Apple
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider Apple does not support cipher PBEWithHmacSHA1AndAES_256
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider BC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider BC does not support cipher PBEWithHmacSHA1AndAES_256
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers successfully initialized the cipher:
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers failed to initialize the cipher: SunJCE
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest -
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Checking algorithm PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SUN
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SUN does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunRsaSign
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunRsaSign does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunEC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunEC does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJSSE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJSSE does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJCE
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJCE does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunJGSS
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunJGSS does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunSASL
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunSASL does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider XMLDSig
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider XMLDSig does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider SunPCSC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider SunPCSC does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider Apple
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Provider Apple does not support cipher PBEWITHSHAAND256BITAES-CBC-BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Running with provider BC
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - Expected error: Illegal key size
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers successfully initialized the cipher:
[main] WARN com.hortonworks.crypto.OpenSSLPBEEncryptorTest - The following providers failed to initialize the cipher: BC
[main] INFO com.hortonworks.crypto.OpenSSLPBEEncryptorTest -
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment