๐ setara ๐
๐ Setara is a php class for hiding texts from simple view, (*1)
CAUTION:
this is NOT strong encryption
use this only for disabling simple view reading texts
not for encryption, this is not serious ^^, (*2)
Instantiation
require __DIR__ . "/vendor/autoload.php";
use Novia713\Setara\Setara;
// Provide as argument a capitalized name of a 1st gen Pokemon
$setara = new Setara("Lapras");
Hide
$setara->enc($my_string);
Reveal
$setara->dec($my_string);
Explanation
This simply uses chr()
and ord()
to convert letters to numbers, using a Pokemon name as seed for displacement., (*3)
I would use this only for standard and common ascii letters., (*4)
Examples
For example, "Hallo" string using "Bulbasaur" as Pokemon seed reads as 73 98 109 109 112
, (*5)
"Hallo" string using "Mew" as Pokemon seed reads as 223 248 259 259 262
, (*6)
This way you can't read the string on simple viw. That's it!, (*7)