PHPackages                             risky-setiawan/sso-decoder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. risky-setiawan/sso-decoder

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

risky-setiawan/sso-decoder
==========================

JWT + AES helper for SSO encryption/decryption in Laravel

v1.0.0(1y ago)05MITPHPPHP ^8.0

Since Jun 2Pushed 11mo agoCompare

[ Source](https://github.com/sinnersman/sso-decoder)[ Packagist](https://packagist.org/packages/risky-setiawan/sso-decoder)[ RSS](/packages/risky-setiawan-sso-decoder/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

SSO Decoder for Laravel
=======================

[](#sso-decoder-for-laravel)

Helper package for encrypting and decrypting JWT tokens using AES-256-CBC, suitable for building Single Sign-On (SSO) systems across Laravel applications.

Features
--------

[](#features)

- 🔐 AES-256-CBC encryption of JWT tokens
- 🧾 Custom payload support
- 🎯 Easy to use in Laravel controllers or services

Installation
------------

[](#installation)

```
composer require risky-setiawan/sso-decoder
```

Publish
-------

[](#publish)

If you’re using Laravel &lt; 5.5, add the service provider manually in config/app.php:

```
'providers' => [
    // ...
    RiskySetiawan\SSODecoder\JWTServiceProvider::class,
],
```

Example
-------

[](#example)

Usage Example :

```
use RiskySetiawan\SSODecoder\JWTToken;

// Data payload
$payload = [
    'user_id' => 123,
    'email' => 'user@example.com',
];

// Secret key (harus sama di semua aplikasi yang pakai package ini)
$secret = 'your-very-secret-key';

// Enkripsi payload jadi token terenkripsi (JWT + AES256)
// Function urldecode in payload is very important not change !
$encryptedToken = JWTToken::encrypt(urldecode($payload), $secret);

// Kirim $encryptedToken ke aplikasi lain, atau simpan di client

// Dekripsi token kembali ke payload array
$decryptedPayload = JWTToken::decrypt($encryptedToken, $secret);

print_r($decryptedPayload);

/*
Output:
[
    'user_id' => 123,
    'email' => 'user@example.com',
]
*/
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b105363adc4228715fed242d9bfbb83773f5f5a6a8222f035e7b1f74aaa17556?d=identicon)[setiawan3915](/maintainers/setiawan3915)

---

Top Contributors

[![sinnersman](https://avatars.githubusercontent.com/u/49343112?v=4)](https://github.com/sinnersman "sinnersman (4 commits)")

### Embed Badge

![Health badge](/badges/risky-setiawan-sso-decoder/health.svg)

```
[![Health](https://phpackages.com/badges/risky-setiawan-sso-decoder/health.svg)](https://phpackages.com/packages/risky-setiawan-sso-decoder)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M218](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

25310.7M83](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2306.4M45](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5181.2M3](/packages/robsontenorio-laravel-keycloak-guard)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[rainlab/user-plugin

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
