public class CryptoMain
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUGMODE
Can be set by applications.
|
static java.lang.String |
NAME_PRINTABLE |
static int |
VERSION_CODE |
static java.lang.String |
VERSION_PRINTABLE |
Constructor and Description |
---|
CryptoMain() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDefaultEncryptionAlgorithm() |
static int |
getDefaultHashIterationCount() |
static int |
getDefaultHashLengthBytes() |
static java.lang.String |
getDefaultHMACAlgorithm() |
static int |
getDefaultKeyIterationCount() |
static int |
getDefaultKeyLengthBits() |
static int |
getDefaultKeyLengthBytes() |
static int |
getDefaultSaltLengthBytes() |
static int |
getDefaultSeedComplexity() |
static void |
main(java.lang.String[] args) |
static void |
setAndroidMode()
Sets the performance-optimized defaults for Android apps
|
static void |
setDefaultEncryptionAlgorithm(java.lang.String algorithm) |
static void |
setDefaultHashIterationCount(int iterationCount) |
static void |
setDefaultHashLengthBytes(int hashLengthInBytes) |
static void |
setDefaultHMACAlgorithm(java.lang.String algorithm) |
static void |
setDefaultKeyIterationCount(int iterationCount) |
static void |
setDefaultKeyLengthBits(int keyLengthInBits) |
static void |
setDefaultKeyLengthBytes(int keyLengthInBytes) |
static void |
setDefaults()
(Re-)Sets all settings in this class to defaults.
|
static void |
setDefaultSaltLengthBytes(int saltLengthInBytes) |
static void |
setDefaultSeedComplexity(int value) |
static void |
setQuickMode()
Sets performance-optimized default values (medium security level)
|
public static final java.lang.String VERSION_PRINTABLE
public static final int VERSION_CODE
public static final java.lang.String NAME_PRINTABLE
public static boolean DEBUGMODE
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static final void setDefaults()
public static final void setQuickMode()
public static final void setAndroidMode()
public static final int getDefaultKeyIterationCount()
public static final int getDefaultHashIterationCount()
public static final int getDefaultKeyLengthBits()
public static final int getDefaultKeyLengthBytes()
public static final int getDefaultSaltLengthBytes()
public static final int getDefaultHashLengthBytes()
public static final java.lang.String getDefaultEncryptionAlgorithm()
public static final java.lang.String getDefaultHMACAlgorithm()
public static final int getDefaultSeedComplexity()
public static final void setDefaultKeyIterationCount(int iterationCount)
public static final void setDefaultHashIterationCount(int iterationCount)
public static final void setDefaultKeyLengthBits(int keyLengthInBits)
public static final void setDefaultKeyLengthBytes(int keyLengthInBytes)
public static final void setDefaultSaltLengthBytes(int saltLengthInBytes)
public static final void setDefaultHashLengthBytes(int hashLengthInBytes)
public static final void setDefaultEncryptionAlgorithm(java.lang.String algorithm)
public static final void setDefaultHMACAlgorithm(java.lang.String algorithm)
public static final void setDefaultSeedComplexity(int value)