base64-encode the hash to save space