dev-master
9999999-devA trivial way for hiding text from simple view.
GPL-2
The Development Requires
by Leandro
A trivial way for hiding text from simple view.
๐ 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)
require __DIR__ . "/vendor/autoload.php"; use Novia713\Setara\Setara; // Provide as argument a capitalized name of a 1st gen Pokemon $setara = new Setara("Lapras");
$setara->enc($my_string);
$setara->dec($my_string);
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)
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)
A trivial way for hiding text from simple view.
GPL-2