MD5 hash is now calculated. Maybe, there is a reason to use spring-security library for that.