This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Answer for https://www.gutefrage.net/frage/wie-kann-man-einen-php-token-generator-machen#answer-352860809 | |
// Encrypt and decrypt all digits in the expiration time by the Affine cipher | |
// https://en.wikipedia.org/wiki/Affine_cipher | |
// https://stackoverflow.com/a/23679870/6263942 | |
// encypt and decrypt the digit by the Affine cipher | |
function encrypt_digit( $digit ) { | |
return ( 7 * $digit ) % 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Really Simple CSV Importer Debugger add-on | |
Description: Enables to dry-run-testing with Really Simple CSV Importer. When this add-on plugin activated, csv data will not imported, just displayed on dashboard. | |
Author: Takuro Hishikawa | |
Version: 0.2.1 | |
*/ | |
class rscsvimporter_debug { | |
// singleton instance |