我正在 python uuid4 字符串中生成。
我用它来识别我的服务帐户,但我的系统之一(GCP 服务帐户)有 30 个字符的限制,现在使用其他帐户为时已晚:
Service account ID must be between 6 and 30 characters.
Service account ID must start with a lower case letter, followed by one or more lower case alphanumerical characters that can be separated by hyphens.
Run Code Online (Sandbox Code Playgroud)
如何获得具有有限冲突风险的较短版本的 UUID?
我见过一些 base64 编码 hack,但我能做的最短是 22。理想情况下,我会拥有类似 git commit hash 的东西,因为冲突的风险是有限的。
| 归档时间: |
|
| 查看次数: |
3391 次 |
| 最近记录: |