Better generation of salt

Fixed generation of random portion of the salt to be more random (base64 instead of base36).