implemented hash functionality

Change-Id: I49db924a8684932fb9cb4650790cd62e1f83be0a