crutch/crypt-openssl

OpenSSL Crypt implementation

v1.0.0 2023-01-19 11:51 UTC

This package is not auto-updated.

Last update: 2024-11-22 05:51:21 UTC


README

Crypt interface

Install

composer require crutch/crypt-openssl

Usage

<?php

$crypt = new Crutch\OpenSslCrypt\OpenSslCrypt('secret', 16);
$value = 'test'
$encrypted = $crypt->encrypt($value);
$decrypted = $crypt->decrypt($encrypted);

var_dump($value === $decrypted);