Hi Team,

Having the problems while working with apache shiro related SHA-256
password encryption for other then English characters.

I have an application with the basic configuration of shiro and spring
which should support multi lingual. I am creating a user from the UI by
giving some username (ENGLISH CHARS), Then  i able to login in to the
application. But when i switch to some other language like ukraine (UKRAINE
CHARS) and create a user, Then i unable to login into application. (Here
password will be generated something like "P@ssword" for both
english/ukraine language)

Ex:

String encPassword = new Sha256Hash("P@ssword", "admin").toBase64();
 ------->  Some encrypted key

String encPassword = new Sha256Hash("P@ssword", "фвьшт").toBase64();
 -------> Some other encrypted key

Is there any way to set/enable the multi lingual character set support? How
do i go a head?

Could you please suggest where it might went wrong and the way forward.
Thanks in advance.

-- 

Thanks & Regards

Nagaraju Kurma

Reply via email to