Title: mkwprel's Replies | WordPress.org

---

# mkwprel

  [  ](https://wordpress.org/support/users/mkwprel/)

 *   [Profile](https://wordpress.org/support/users/mkwprel/)
 *   [Topics Started](https://wordpress.org/support/users/mkwprel/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mkwprel/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mkwprel/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mkwprel/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mkwprel/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mkwprel/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Responsive Menu] Swipe Problem with blank menu area](https://wordpress.org/support/topic/swipe-problem-with-blank-menu-area/)
 *  Thread Starter [mkwprel](https://wordpress.org/support/users/mkwprel/)
 * (@mkwprel)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/swipe-problem-with-blank-menu-area/#post-17340275)
 * Just tried to reproduce it, with and without option “Swipe” enabled the issue
   has disappeared. So my workaround is obsolete, thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CryptX] Double quotes in hash](https://wordpress.org/support/topic/double-quotes-in-hash/)
 *  Thread Starter [mkwprel](https://wordpress.org/support/users/mkwprel/)
 * (@mkwprel)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/double-quotes-in-hash/#post-11174744)
 * Sorry, this introduced a new bug (PHP Fatal error: Maximum function nesting level
   of ‘100’ reached, aborting), so I changed this function to:
 *     ```
       function rw_cryptx_generate_hash($string) {
       		$string = str_replace("&", "&", $string);
       		$blacklist = array(
       							'32',	// Space
       							'34',	// Double quote
       							'39',	// Single quote
       							'60',	// Less than
       							'62',	// Greater than
       							'63',	// Question mark
       							'92',	// Backslash
       							'94',	// Caret - circumflex
       							'96',	// Grave accent
       							'127',	// Delete
       						);
               $crypt	= '';
               $ascii	= 0;
   
               for ($i = 0; $i < strlen( $string ); $i++) {
   
                   do {
           	    	$salt	= mt_rand(0, 3);
                       $ascii = ord ( substr ( $string, $i ) ) + $salt;
                       if (8364 <= $ascii) {
                           $ascii = 128;
                       }
   
                   } while ( in_array($ascii, $blacklist) ); // blacklisted chars are impossible for hash! retry with new random...
   
                   $crypt .= $salt.chr($ascii);
               }
               return $crypt;
       }
       ```
   
 * This code runs with better performance and no recursion issues.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin zip file checksums vary](https://wordpress.org/support/topic/plugin-zip-file-checksums-vary/)
 *  [mkwprel](https://wordpress.org/support/users/mkwprel/)
 * (@mkwprel)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/plugin-zip-file-checksums-vary/#post-4449529)
 * I found the same discrepancy, but unpacking those files and running “diff -r 
   <plugin-before> <plugin-later>” showed no differences. So only the zip-files 
   differ, not their content. This is bad for security aware people, because you
   cannot easily distinguish between original and man-in-the-middle changed files.

Viewing 3 replies - 1 through 3 (of 3 total)