PHPackages                             tzsk/crypt - 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. [Security](/categories/security)
4. /
5. tzsk/crypt

Abandoned → [tzsk/crypton](/?search=tzsk%2Fcrypton)ArchivedLibrary[Security](/categories/security)

tzsk/crypt
==========

Cross Platform Encryption And Decryption

1.0.1(8y ago)160MITPHPPHP ~5.6|~7.0

Since Aug 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tzsk/crypt)[ Packagist](https://packagist.org/packages/tzsk/crypt)[ Docs](https://github.com/tzsk/crypt)[ RSS](/packages/tzsk-crypt/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Crypt for Laravel
=================

[](#crypt-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d50aa94a4106f6c34eb6f867101b703905ca5d9c9ff17bf93f51363cf34391d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747a736b2f63727970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tzsk/crypt)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/aedfeca3e8c41ab88e75547ed7396407099f65f2c8d0da4ccdf103b31b000292/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747a736b2f63727970742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tzsk/crypt/build-status/master)[![StyleCI](https://camo.githubusercontent.com/b1af8ae96060b774e45913f3d90444bc6698671ac4ecee3191aab1b366bd17d0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130303437333239342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/100473294)[![Quality Score](https://camo.githubusercontent.com/5efed3fca97a6f9f18a726e23c9ba3977f25820faa5818b62833bd59050198e9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f747a736b2f63727970742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tzsk/crypt)[![Total Downloads](https://camo.githubusercontent.com/599f5f224be3a91476436ce5d05cd3a0ae1f24aa6b56fae050cd304dfb0434f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747a736b2f63727970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tzsk/crypt)

Cross Platform Encryption and Decryption with Laravel. Mostly used for API Response Encryption and Decrypt at app Level.

Compatible with Laravel 5.1 or Higher.

Install
-------

[](#install)

Via Composer

```
$ composer require tzsk/crypt
```

Configure
---------

[](#configure)

`config/app.php`

```
'providers' => [
    ...
    Tzsk\Crypt\Provider\CryptServiceProvider::class,
    ...
],

'aliases' => [
    ...
    'StrCrypt' => Tzsk\Crypt\Facade\StrCrypt::class,
    ...
],
```

To publish the Configuration file in `config/crypt.php` Run:

```
php artisan vendor:publish --tag=config
```

Usage
-----

[](#usage)

First use the namespace at the top:

```
use Tzsk\Crypt\Facade\StrCrypt;
```

Then use it as following:

```
$text = "Hello World!";

$encrypted = StrCrypt::encrypt($text);

$decrypted = StrCrypt::decrypt($encrypted);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Kazi Mainuddin Ahmed](https://github.com/tzsk)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2

Last Release

3242d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47768513?v=4)[Kazi Manzur Ahmed](/maintainers/kazimahmed)[@kazimahmed](https://github.com/kazimahmed)

---

Top Contributors

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

---

Tags

crypttzsk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tzsk-crypt/health.svg)

```
[![Health](https://phpackages.com/badges/tzsk-crypt/health.svg)](https://phpackages.com/packages/tzsk-crypt)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9630.7M318](/packages/illuminate-encryption)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

244672.1k1](/packages/tzsk-otp)[tzsk/crypton

Laravel API Request Response Encryption

417.4k](/packages/tzsk-crypton)

PHPackages © 2026

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