PHPackages                             crowdstar/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. crowdstar/crypt

ActiveLibrary[Security](/categories/security)

crowdstar/crypt
===============

Handle data encryption/decryption.

2.0.1(4y ago)28.5k↓50%1Apache-2.0PHPPHP &gt;=7.4CI passing

Since Oct 10Pushed 4mo ago6 watchersCompare

[ Source](https://github.com/Crowdstar/crypt)[ Packagist](https://packagist.org/packages/crowdstar/crypt)[ Docs](https://www.glu.com)[ RSS](/packages/crowdstar-crypt/feed)WikiDiscussions master Synced 1mo ago

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

[![Library Status](https://github.com/Crowdstar/crypt/workflows/Unit%20Tests/badge.svg)](https://github.com/Crowdstar/crypt/actions)[![Latest Stable Version](https://camo.githubusercontent.com/5e7c6741c44aaf1f5e200d3a23deff9d8505aba522375e8516e0c82e43971c50/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f63727970742f762f737461626c652e737667)](https://packagist.org/packages/crowdstar/crypt)[![Latest Unstable Version](https://camo.githubusercontent.com/203f7586aebc7f5fdcda27e35dea2988c134bd3be112c40dc798e2fc3957df15/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f63727970742f762f756e737461626c652e737667)](https://packagist.org/packages/crowdstar/crypt)[![License](https://camo.githubusercontent.com/19d8c20b0eefa9d633e56d1f99851ca14039f210abd221d3965e0640e5c1144e/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f63727970742f6c6963656e73652e737667)](https://packagist.org/packages/crowdstar/crypt)

Summary
=======

[](#summary)

The crypt package creates a simple interface for the phpseclib AES-128 library. Its interface allows encryption and decryption of strings with a layer of base64 encoding for easy transmission including the initialization vector.

Installation
============

[](#installation)

```
composer require crowdstar/crypt:~2.0.0
```

Sample Usage
============

[](#sample-usage)

Before using the library, you need to choose a secret key, which should be of size 16, 24 or 32 only.

```
