To protect your code against wannabee hackers you shouldn’t write anything important in clear text. Encrypt it and decrypt it again using bit flip also called XOR.
Sample Codes:
C++:
for(int i = 0, y = 0; i <= strlen(data); ) {
for(int o = 0; o <= BLOCK_SIZE; o++) {
if(data[i] != ”) {
data[i] ^= key[y]; }
i++; }
y++;
if(key[y] == ”) {
y = 0; }
}
for(int o = 0; o <= BLOCK_SIZE; o++) {
if(data[i] != ”) {
data[i] ^= key[y]; }
i++; }
y++;
if(key[y] == ”) {
y = 0; }
}
PHP:
//encrypt
$s = ‘hello’;
$t = ”;
$z = ”;
$s = ‘hello’;
$t = ”;
$z = ”;
for ($i=0; $i<5; $i++) {
$b ^= $s[$i];
$t .= $b;
}
// Decrypt
for ($i=0; $i<5; $i++) {
$b ^= $t[$i];
$z .= $b;
}
print($z);