crypto/src/main/java/org/springframework/security/crypto/encrypt/CipherUtils.java
public static SecretKey newSecretKey(String algorithm, String password) {
		return newSecretKey(algorithm, new PBEKeySpec(password.toCharArray()));
	}
public static SecretKey newSecretKey(String algorithm, String password) {
		return newSecretKey(algorithm, new PBEKeySpec(password.toCharArray()));
	}
public static SecretKey newSecretKey ( String algorithm , String password ) { return newSecretKey ( algorithm , new PBEKeySpec ( password . toCharArray ( ) ) ) ; }
Generates a SecretKey.
Generates a SecretKey .