note 119481 deleted from function.str-rot13 by salathe

From: Date: Fri, 17 Jun 2016 15:15:32 +0000
Subject: note 119481 deleted from function.str-rot13 by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205745@lists.php.net to get a copy of this message
Note Submitter: php at maildrop dot cc ---- While PHP's rot13 seems already pretty good, we had to implement a more advanced version to cater to our very high security standards. Basically the rot13 algorithm is applied iteratively to the point where it is really hard to detect, making it less obvious how to decrypt the string: <?php function rot26($str) { for($i = 0; $i < 2; $i++) { $str = rot13($str); } return $str; } ?>

« previous php.notes (#205745) next »