<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I&#39;m trying to create some migration scripts that will port users from Application1 into keycloak. Users in Application1 already have usernames, passwords etc. I use the admin rest api to create the users.<br><br></div>The problem i&#39;m facing is that user passwords in Application1 database are already hashed using md5. So, i don&#39;t really know the actual passwords (security wise that makes sense). <br><br></div><div>The only solution i&#39;ve come down to is store the password as they are in keycloak (md5ed) and tell the users to use the hashed value instead of the plaintext one wieh signing in. Then, force them to reset passwords. Not the best UX  :-(<br></div><div><br></div>Is there a way to tell keycloak that &quot;these passwords are already hashed in md5&quot; so, &quot;store them as they are&quot; and &quot;when a user tries to sign in, first hash his password with md5 and the compare to the value stored in db&quot;  or sth like that?<br><br></div>Any alternatives come to mind ?<br><div><div><div><div><div><br><br></div><div>Regards <br><br>Orestis<br></div></div></div></div></div></div>