CodeSampleX

Beispiel

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

Verifiziertes Beispiel für gem base64 0.3.0: Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line…

sha256:f8db5d5b06642ffab3e5fd90c8bf484d652b28d5bc690cc868c1e72b578d0f82

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung ruby linux x64 ruby ruby bundler

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
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

Fall

HOW
Ziel
Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
Pakete
Symbole
  • Base64.encode64
  • Base64.strict_encode64
  • Base64.decode64
  • Base64.strict_decode64
  • Base64.urlsafe_encode64
  • Base64.urlsafe_decode64
Umgebung
ruby
Erstellt
2026-08-16T09:01:39Z

Contract

  1. assert Base64.encode64 always appends a trailing newline and line-wraps every 60 characters
  2. assert Base64.strict_encode64 produces a single line without newlines or line-wrapping
  3. assert Base64.decode64 silently ignores non-alphabet characters and missing padding without raising errors
  4. assert Base64.strict_decode64 raises ArgumentError on newlines, non-alphabet characters, and missing padding
  5. assert Base64.urlsafe_encode64 replaces +/ with -_ and supports padding: false to omit =
  6. assert Base64.urlsafe_decode64 decodes both padded and unpadded URL-safe strings while rejecting + and /
  7. assert Base64 decode methods always return ASCII-8BIT binary encoded strings

Dateien

  • Gemfile
  • Gemfile.lock
  • NOTES.md
  • csx.json
  • test/contract.rb

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed