/** * Attempt to identify the algorithm used by the given crypt string password. * * @param chars the password crypt string characters * @return the algorithm name, or {@code null} if no algorithm could be guessed */ public static String identifyAlgorithm(char[] chars) { return getAlgorithmNameString(doIdentifyAlgorithm(chars)); }
final int algorithmId = doIdentifyAlgorithm(cryptString); switch (algorithmId) { case A_CRYPT_MD5: {
/** * Attempt to identify the algorithm used by the given crypt string password. * * @param chars the password crypt string characters * @return the algorithm name, or {@code null} if no algorithm could be guessed */ public static String identifyAlgorithm(char[] chars) { return getAlgorithmNameString(doIdentifyAlgorithm(chars)); }
/** * Attempt to identify the algorithm used by the given crypt string password. * * @param chars the password crypt string characters * @return the algorithm name, or {@code null} if no algorithm could be guessed */ public static String identifyAlgorithm(char[] chars) { return getAlgorithmNameString(doIdentifyAlgorithm(chars)); }
/** * Attempt to identify the algorithm used by the given crypt string password. * * @param chars the password crypt string characters * @return the algorithm name, or {@code null} if no algorithm could be guessed */ public static String identifyAlgorithm(char[] chars) { return getAlgorithmNameString(doIdentifyAlgorithm(chars)); }
final int algorithmId = doIdentifyAlgorithm(cryptString); switch (algorithmId) { case A_CRYPT_MD5: {
final int algorithmId = doIdentifyAlgorithm(cryptString); switch (algorithmId) { case A_CRYPT_MD5: {
final int algorithmId = doIdentifyAlgorithm(cryptString); switch (algorithmId) { case A_CRYPT_MD5: {