resolving dependency conflicts
updated impl and unit test based on shiro's hashing service