mbing/openssl-cryptor

Provide a concise OpenSSL encryptor library.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mbing/openssl-cryptor

dev-master 2019-07-28 03:18 UTC

This package is auto-updated.

Last update: 2025-09-28 17:12:54 UTC


README

Provide a concise OpenSSL encryptor library.

Description

OpenSSL Encryptor with 19 Lines of Code.

Install

Require this library through composer:

composer require mbing/openssl-cryptor

Example

use mbing\OpensslCryptor\Cryptor;

$encodeData = 'Here is the data to be encrypted.';
$key = 'eiort832j39fe8we';
//encrypto
$encrypted = Cryptor::Encrypt($encodeData, $key);
//decrypto
$decrypted = Cryptor::Decrypt($encrypted, $key);