Google App Engine密钥中允许使用哪些字符? [英] What characters are allowed in a Google App Engine Key?

查看:187
本文介绍了Google App Engine密钥中允许使用哪些字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在测试我的Google App Engine应用程序时,我搜索包含应用程序引擎密钥的链接。例如:

While testing my Google App Engine application, I search for links which include app engine keys. For example:

/story/ag5yZXBsaWUtdGVzdGluZ3IMCxIFU3RvcnkY-w0M/

这些键允许使用哪些字符?我一直使用正则表达式 [a-zA-Z0-9] ,但似乎也允许使用 - 。还有什么?

What characters are allowed in these keys? I had been using the regex [a-zA-Z0-9], but it seems "-" is also allowed. What else?

有没有关于这方面的参考?我无法在App引擎文档中找到它。

Is there a reference on this? I can't find it in the App engine docs.

推荐答案

Google App引擎密钥使用URL安全基础64编码请参阅密钥数据存储类型的源代码)。

Google App Engine keys are encoded using URL safe base 64 encoding (see The source code for the Key datastore type).

这篇关于Google App Engine密钥中允许使用哪些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆