Skip to content

ammarfaizi2/IceCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IceCrypt PHP Encryption

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

Packages

No packages published

Languages