ammarfaizi2/icecrypt

IceCrypt PHP Encryption

0.0.1 2017-12-17 13:30 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:45:25 UTC


README

A tool for secrets management and encryption as a service.

Installation

composer require ammarfaizi2/icecrypt

Example

<?php

require __DIR__ . "/vendor/autoload.php";

use IceCrypt\IceCrypt;

$string = "Hello World!";
$key	= "secret12345";

// encrypt
$encrypted_string = IceCrypt::encrypt($string, $key);
echo "Encrypted string : " . $encrypted_string . "\n";

// decrypt
$decrypted_string = IceCrypt::decrypt($encrypted_string, $key);
echo "Decrypted string : " . $decrypted_string . "\n";

LICENSE

Licensed under the MIT License