PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Encryption Library   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Encryption Library
Encrypt and decrypt data using adapter classes
Author: By
Last change:
Date: 5 years ago
Size: 307 bytes
 

Contents

Class file image Download
<?php
   
use Lablnet\Encryption;
    require
'../vendor/autoload.php';
   
   
$encryption = new Encryption();
   
   
//Encrypt the message
   
$encrypt = $encryption->encrypt("This is a text");
   
   
var_dump($encrypt);
    echo
"<br\>";
   
   
//Decrypt the message
   
$decrypt = $encryption->decrypt($encrypt);
   
var_dump($decrypt);