@ThreadSafe public final class CryptoPolicy extends Object
This program attempts to generate a 256-bit AES key and use it to do to a simple encryption. If the encryption succeeds, the assumption is that the JVM being used has the "unlimited" strength JCE jurisdiction policy files installed.
We use this for JUnit tests. If unlimited strength crypto is not available, we simply skip certain JUnit tests that would require it.
Based on owasp-esapi-java source.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUnlimitedStrengthCryptoAvailable()
Check to see if unlimited strength crypto is available.
|
public static boolean isUnlimitedStrengthCryptoAvailable()
true if we can provide keys longer than 128 bits,
false otherwiseCopyright © 2014–2017 Philip Helger. All rights reserved.