salernolabs/slzcrypt

Simple PHP wrapper around OpenSSL encryption.

v1.0.0 2019-08-03 19:19 UTC

This package is auto-updated.

Last update: 2024-11-29 05:21:16 UTC


README

Latest Stable Version License Build Status

Wrapper around OpenSSL encryption in PHP. Another breakout from my custom framework.

Install

Use composer

composer require salernolabs/slzcrypt

Usage

Instantiate a class with a key and encrypt or decrypt data.

$crypt = new \SalernoLabs\Slzcrypt\Crypt($key);

$encrypted = $crypt->encrypt($input);

$decrypted = $crypt->decrypt($encrypted);