Forums de discussion

exception.PwdEncryptorException: invalid keyLength value

Michele Stoduto, modifié il y a 6 années.

exception.PwdEncryptorException: invalid keyLength value

Junior Member Publications: 42 Date d'inscription: 07/07/10 Publications récentes
Hi all,
after update lf6.2ga4 to lf7.ga4 i'have this error after login into lf7

com.liferay.portal.kernel.exception.PwdEncryptorException: invalid keyLength value
com.liferay.portal.kernel.exception.PwdEncryptorException: invalid keyLength value
	at com.liferay.portal.security.pwd.PBKDF2PasswordEncryptor.encrypt(PBKDF2PasswordEncryptor.java:90)
	at com.liferay.portal.security.pwd.CompositePasswordEncryptor.encrypt(CompositePasswordEncryptor.java:51)
	at com.liferay.portal.kernel.security.pwd.PasswordEncryptorUtil.encrypt(PasswordEncryptorUtil.java:74)
	at com.liferay.portal.security.pwd.PwdAuthenticator.authenticate(PwdAuthenticator.java:44)
	at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:5789)
	at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByEmailAddress(UserLocalServiceImpl.java:1255)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


The properties for password algoritm into lf6.2:

company.encryption.algorithm=AES
ldap.auth.password.encryption.algorithm=NONE
passwords.encryption.algorithm=PBKDF2WithHmacSHA1/160/128000
passwords.encryption.algorithm.legacy=SHA
tunneling.servlet.encryption.algorithm=AES


I don't know how to resolve.
Is there someone who can help me?
Thanks.
Michele Stoduto, modifié il y a 6 années.

RE: exception.PwdEncryptorException: invalid keyLength value

Junior Member Publications: 42 Date d'inscription: 07/07/10 Publications récentes
Hi all,
I've find the solution.

I've added
passwords.encryption.algorithm.legacy=SHA
into portal-setup-wizard.properties file.

Thanks.