crutch/crypt-openssl

OpenSSL Crypt implementation

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

This package is not auto-updated.

Last update: 2024-12-20 06:14:07 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);