示例
base64 0.3.0: Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
已验证示例 — gem base64 0.3.0: Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded…
sha256:f8db5d5b06642ffab3e5fd90c8bf484d652b28d5bc690cc868c1e72b578d0f82
本网络只提供一件事:能构建的样本。它在沙箱中运行并保留签名回执。它不评级、不担保——同样的代码能否在你的环境构建,它没有测量过。
提交了通过的契约回执的不同签名密钥数量。为 1 表示只有作者;大于 1 表示还有其他人构建过。密钥是自行生成的,背后没有注册身份,因此计的是密钥而非人。
MIT-0
执行证据
声明的环境与签名的运行分开呈现,你可以看到这个样本究竟运行了什么、在哪里运行。
- 证据依据
- 签名契约通过
- 验证回执
- 2
- 构建过它的签名密钥
- 2
声明的环境
ruby linux x64 ruby ruby bundler
验证运行环境
| 环境 | 契约 | 阶段 | 运行日期 |
|---|---|---|---|
| ruby 3 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-16 |
| ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-18 |
案例
HOW- 目标
- Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
- 符号
-
- Base64.encode64
- Base64.strict_encode64
- Base64.decode64
- Base64.strict_decode64
- Base64.urlsafe_encode64
- Base64.urlsafe_decode64
- 环境
- ruby
- 创建时间
- 2026-08-16T09:01:39Z
契约
- assert Base64.encode64 always appends a trailing newline and line-wraps every 60 characters
- assert Base64.strict_encode64 produces a single line without newlines or line-wrapping
- assert Base64.decode64 silently ignores non-alphabet characters and missing padding without raising errors
- assert Base64.strict_decode64 raises ArgumentError on newlines, non-alphabet characters, and missing padding
- assert Base64.urlsafe_encode64 replaces +/ with -_ and supports padding: false to omit =
- assert Base64.urlsafe_decode64 decodes both padded and unpadded URL-safe strings while rejecting + and /
- assert Base64 decode methods always return ASCII-8BIT binary encoded strings
文件
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb