PHPackages                             blazemv/cryptx - 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. blazemv/cryptx

ActiveLibrary[Security](/categories/security)

blazemv/cryptx
==============

Simple PHP library for encrypting and decrypting data using private and public pem key files

v1.1(5y ago)013MITPHPPHP &gt;=7.2.0

Since Dec 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BlazeMV/Cryptx)[ Packagist](https://packagist.org/packages/blazemv/cryptx)[ Docs](https://github.com/blazemv/cryptx)[ RSS](/packages/blazemv-cryptx/feed)WikiDiscussions master Synced 6d ago

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

Cryptx
======

[](#cryptx)

Simple PHP library for encrypting and decrypting data using private and public pem key files

### Requirements

[](#requirements)

- PHP 7.2 or higher
- openssl PHP extension

### Installation

[](#installation)

`$ composer require blazemv/cryptx`

### Usage

[](#usage)

`$ php artisan vendor:publish --provider="Blaze\Cryptx\CryptxServiceProvider"`

`$ php artisan cryptx:keys`

#### Laravel

[](#laravel)

```
//anywhere in your app
$encrypted = \Cryptx::encrypt("My Secret String");
$decrypted = \Cryptx::decrypt($encrypted);
```

#### Outside Laravel

[](#outside-laravel)

```
