Adds GetHash function
Fix bug in bas64 encoding