use databases to contain user, password with Spring Security
used sha to encrypt on database for Spring Security