This repository contains open source encryption algorithms that might help some other dev's out there in the world
Encryption is a useful tool when it comes to hiding your data (plain text), and protecting the data from bad actors.
This encryption algorithm works by hashing the individual charcters in a string with salting data, pepering data, indexing data and anchor data. Encryption is a two-way function that includes encryption and decryption whilst hashing is a one-way function that changes a plain text to a unique digest that is irreversible
Salting data comes from the implication of salting technique. Salting is a technique that adds random data, or a salt, to a hash string before hashing it to make hashed output more secure
Pepering data is the direct output of the pepering technique. Peppering is a method of increasing the security of a hashed string by adding a secret value, called a pepper, to the string before hashing
Index data is the output guide of which hash combination results. This helps reveal in the system which hash combination is which char.
This encryption script is safer than using plaintext data, I Wont say its perfect but it gets the job done.
Its not 100% secure, (not because the encryption scripts is public). but because there is never anything 100% secure especially if you can reverse the encryption.
This version of the encryption threading is only compatible with sha256, other hashing algorithms are not yet compatible with the decryption process.
locate the example.php to preview the encryption services
<?php
include_once "bin/services.php"; #Include The Encryption Service Classes
$e = new encryption_services('_AUTH_TOKEN_');
#Declare The Encryption Class
$enc_data = $e->encryption_threading('Hello World');
#This is the encryption procedure for the encryption threading
$output = $e->decryption_threading_1($enc_data);
#This is the decryption procedure for the encryption threading
echo $output;
?>