luckystar/crypto

There is no license information available for the latest version (v1) of this package.

v1 2024-04-14 15:19 UTC

This package is auto-updated.

Last update: 2024-11-14 16:28:02 UTC


README

This is a simple PHP library that provides a simple interface for encrypting and decrypting data using the OpenSSL extension.

Installation

You can install the library via Composer. Run the following command:

composer require luckystar/crypto

Function list

Usage

use \LuckyStar\Crypto\Crypto;

// Encrypt data

echo $crypto->setSecretIv('00cccskmmx55')
	->setSecretKey('00	cccxxx55')
	->encrypt('Hello, World!')->getOutput();

// Decrypt data

echo $crypto->decrypt('b0lSSVJzeTUwZ1p4WGpmNUY0Zk55NE9janZaZWM1VVhKUEdVUDBSZWh2WT0=')->getOutput();