Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

encodedKey indexing out of sync in docs/CaskSecret.md

未关闭
#72 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
55/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
领域
documentation

调研方向

打开 docs/CaskSecret.md 的第 84–91 行附近,并将 encodedKey 表与 issue 中提供的修正后结尾进行比较。更新索引、右方括号和范围表示法,使最后一个字符为 encodedKey[63],总数为 64 个字符。当 URL-safe Base64 示例的表在内部保持一致时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

In https://github.com/microsoft/cask/blob/main/docs/CaskSecret.md#url-safe-base64-encoded-rendering-example-for-256-bit-key-no-optional-data, the indexing of encodedKey goes out of sync after <12-bits-reserved> "AA":

https://github.com/microsoft/cask/blob/6f4c27277bdbe447929dba1a7f009bdddc0e9c0e/docs/CaskSecret.md?plain=1#L84-L91

It shows the time-of-allocation second at encodedKey[64], but that should instead be at encodedKey[63] so that the size of the whole thing is 64 characters and it evenly translates to 64/4*3 = 48 bytes.

Also, there is a closing bracket missing, and the 'a'..'e' range should use ... rather than .. because it's meant to include 'e'.

The table should end like this:

String Range Text Value Description
… … …
encodedKey[52..56] 'TEST' Provider fixed signature.
encodedKey[56..58] 'AA' Reserved encoded zero characters.
encodedKey[58] 'A'...'_' Time-of-allocation year, 'A' (2025) to '_' (2088)
encodedKey[59] 'A'...'L' Time-of-allocation month, 'A' (January) to 'L' (December)
encodedKey[60] 'A'...'Z'|'a'...'e' Time-of-allocation day, 'A' (0) to 'e' (31)
encodedKey[61] 'A'...'X' Time-of-allocation hour, 'A' (hour 0 or midnight) to 'X' (hour 23).
encodedKey[62] 'A'...'7' Time-of-allocation minute, 'A' (0) to '7' (59).
encodedKey[63] 'A'...'7' Time-of-allocation second, 'A' (0) to '7' (59).
主要语言
C#
星标
6
派生
5
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/cask 的其他 Issue

查看 microsoft/cask 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。