PHPackages                             malyxksz/sf-crypto - 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. malyxksz/sf-crypto

ActiveLibrary

malyxksz/sf-crypto
==================

v1.0.4(5y ago)213proprietaryPHPPHP &gt;=7.0

Since Mar 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/malyxksz/sf-crypto)[ Packagist](https://packagist.org/packages/malyxksz/sf-crypto)[ RSS](/packages/malyxksz-sf-crypto/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (0)

SF - Crypto
===========

[](#sf---crypto)

Small PHP library that allows you to decrypt and encrypt requests from SFgame.

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

[](#installation)

Via composer

```
$ composer require "malyxksz/sf-crypto"

```

Usage
-----

[](#usage)

```
require __DIR__.'/vendor/autoload.php'; // Autoloader

use SF_Crypto\Request\RequestDecrypt;

/*
 * Data
 */
$MY_KEY_ID = '0-080j09R3QcM125';
$MY_KEY = 'A25p573435609wDI';

/*
 * Request data
 * Encrypted string
 */
$MY_REQUEST = '0-080j09R3QcM125bMIoFRuKNlPC-CiX7CXKAEG_ezwY7wAOML8yzJVjEuzSDxDcjyXFM5aIh84IOaqDaYrCRwGt2OgxwbCIBgxJGWj6IoYyPKERGi1OU9Dvkj8=';

/*
 * Init decrypt class
 * Passing values: Crypto Key ID & Crypto Key
 */
$RequestDecrypt = new RequestDecrypt($MY_KEY_ID, $MY_KEY); // Init decrypt class

/*
 * Request decryption
 * Decrypted data returned as RequestData class
 */
$decrypt_data = $RequestDecrypt->decryptRequest($MY_REQUEST);

/*
 * Print decrypted data
 */
echo "Decrypted data";
echo "Session: {$decrypt_data->getSession()}"; # string
echo "Action: {$decrypt_data->getAction()}"; # string
echo "Parameters: ".print_r($decrypt_data->getParameters(), true).""; # array
```

Other examples of using this library are in the `examples` folder.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/malyxksz/sf-crypto/blob/main/LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

5

Last Release

1874d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51834796?v=4)[malyxksz](/maintainers/malyxksz)[@malyxksz](https://github.com/malyxksz)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/malyxksz-sf-crypto/health.svg)

```
[![Health](https://phpackages.com/badges/malyxksz-sf-crypto/health.svg)](https://phpackages.com/packages/malyxksz-sf-crypto)
```

PHPackages © 2026

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