Skip to content

iNeoTeam/CryptoR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoR

A Simple PHP Encryption/Decryption Library.

Main GUI

Usage

Getting Started

$CryptoR = new CryptoR();

<?php
error_reporting(0);
require_once 'CryptoR.php';

# Use CryptoR Class:
$CryptoR = new CryptoR();

# Create a Private Key and Save on Database or File:
# $privateKey = $CryptoR->KeyGen();
$privateKey = "1499759b861f97284f4c4114de8b407e7a14943096bed1b10d78833658f1e787"; # Create Private Key: $privateKey = $CryptoR->KeyGen();

Create Private Key:

Create a Private Key for Encrypt/Decrypt.

$privateKey = $CryptoR->KeyGen();

// Create a Private Key
$privateKey = $CryptoR->KeyGen();

echo $privateKey;

Result:

1499759b861f97284f4c4114de8b407e7a14943096bed1b10d78833658f1e787

Encrypt

Encrypts a string to secure it.

$CryptoR->Encrypt("Powered By iNeoTeam.", $privateKey);

// Encrypt a string
$encrypted = $CryptoR->Encrypt("Powered By iNeoTeam.", $privateKey);

echo $encrypted;

Result:

MjJnRmd2VHlWdHFOVEtBb0tmUk1EYnBtZmhBVWowdDNyc0JmS2pMMUhwWT0:5e59e5db18cbee8ca772bfe56af42e998b85f4bd33e9fc8ec72ad1e67aaedfce

Decrypt

Decrypts an encrypted string.

$CryptoR->Decrypt("MWZtTFVzSElWZyszcUJmVVowdWdKbXlZa1QyOWs5eFFEczZoNjJhQUJjND0:be988021e5a65eef2b968d43e90f5c03aed67fe11d86591a738779edee159fcc", $privateKey);

$decrypted = $CryptoR->Decrypt("MWZtTFVzSElWZyszcUJmVVowdWdKbXlZa1QyOWs5eFFEczZoNjJhQUJjND0:be988021e5a65eef2b968d43e90f5c03aed67fe11d86591a738779edee159fcc", $privateKey);

echo $decrypted;

Result:

Powered By iNeoTeam.

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages