changing the shortenign algorithm form md5() to base64() for scalibility