Java Based Hash Functionality Implementation