Skip to content

Add sodium support for Base64 URL safe encoding/decoding - #644

Merged
Spomky merged 1 commit into
web-token:3.4.xfrom
jdreesen:patch-1
Nov 17, 2025
Merged

Add sodium support for Base64 URL safe encoding/decoding#644
Spomky merged 1 commit into
web-token:3.4.xfrom
jdreesen:patch-1

Conversation

@jdreesen

Copy link
Copy Markdown
Contributor

Target branch: 3.4.x
Resolves issue #

  • It is a Bug fix
  • It is a New feature
  • It is related to dependencies

Includes:

  • Breaks BC
  • Deprecations

This is a backport of #636 to v3.

We are currently stuck with Symfony 6 and therefore cannot upgrade to v4 of this library, but would still like to profit from this performance improvement.

@Spomky Spomky added this to the 3.4.9 milestone Nov 17, 2025
@Spomky Spomky self-assigned this Nov 17, 2025
@Spomky
Spomky merged commit 112045d into web-token:3.4.x Nov 17, 2025
8 of 12 checks passed
@Spomky

Spomky commented Nov 17, 2025

Copy link
Copy Markdown
Member

Many thanks!
Will be tagged soon.

@jdreesen
jdreesen deleted the patch-1 branch November 17, 2025 21:30
wheakerd pushed a commit to wheakerd/jwt-framework that referenced this pull request Jun 7, 2026
* 3.4.x:
  Update signature tests for the protected-header "alg" requirement (web-token#651)
  Merge commit from fork
  Merge commit from fork
  Merge commit from fork
  Merge commit from fork
  Add sodium support for Base64 URL safe encoding/decoding (web-token#644)
  Allow `psr/cache` v2 (web-token#620)
  Fix call function on null (web-token#596)
  Add RangeException to Base64UrlSafe (web-token#577)
  Add Base64UrlSafe utility and refactor code references (web-token#576)

# Conflicts:
#	composer.json
#	phpstan-baseline.neon
#	src/Bundle/DataCollector/JWECollector.php
#	src/Experimental/KeyEncryption/AESCTR.php
#	src/Experimental/KeyEncryption/Chacha20Poly1305.php
#	src/Experimental/Signature/Blake2b.php
#	src/Library/Console/GeneratorCommand.php
#	src/Library/Core/JWK.php
#	src/Library/Core/Util/Base64UrlSafe.php
#	src/Library/Encryption/Algorithm/ContentEncryption/AESCBCHS.php
#	src/Library/Encryption/Algorithm/ContentEncryption/AESGCM.php
#	src/Library/Encryption/Algorithm/KeyEncryption/AESGCMKW.php
#	src/Library/Encryption/Algorithm/KeyEncryption/AESKW.php
#	src/Library/Encryption/Algorithm/KeyEncryption/AbstractECDH.php
#	src/Library/Encryption/Algorithm/KeyEncryption/Dir.php
#	src/Library/Encryption/Algorithm/KeyEncryption/PBES2AESKW.php
#	src/Library/Encryption/Algorithm/KeyEncryption/RSA15.php
#	src/Library/Encryption/Algorithm/KeyEncryption/Util/ConcatKDF.php
#	src/Library/Encryption/Algorithm/KeyEncryption/Util/RSACrypt.php
#	src/Library/Encryption/Serializer/CompactSerializer.php
#	src/Library/Encryption/Serializer/JSONFlattenedSerializer.php
#	src/Library/Encryption/Serializer/JSONGeneralSerializer.php
#	src/Library/KeyManagement/Analyzer/ESKeyAnalyzer.php
#	src/Library/KeyManagement/Analyzer/HSKeyAnalyzer.php
#	src/Library/KeyManagement/Analyzer/OctAnalyzer.php
#	src/Library/KeyManagement/Analyzer/RsaAnalyzer.php
#	src/Library/KeyManagement/Analyzer/ZxcvbnKeyAnalyzer.php
#	src/Library/Signature/Algorithm/EdDSA.php
#	src/Library/Signature/Algorithm/HMAC.php
#	src/Library/Signature/Serializer/CompactSerializer.php
#	src/Library/Signature/Serializer/JSONFlattenedSerializer.php
#	src/Library/Signature/Serializer/JSONGeneralSerializer.php
#	src/Library/composer.json
#	tests/Bundle/JoseFramework/Functional/Encryption/JWECollectorTest.php
#	tests/Bundle/JoseFramework/Functional/KeyManagement/JWKLoaderTest.php
#	tests/Component/Encryption/RFC7520/A128KWAndA128GCMEncryptionWithCompressionTest.php
#	tests/Component/KeyManagement/JWKFactoryTest.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants