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 | |
/** | |
* PHP function for generating cryptography secure strings of a given length | |
* | |
* @param $length the length in bytes for the generated key | |
* @return the cryptography secure string of {$length} length | |
*/ | |
function generate_key($length) { | |
$strong = FALSE; |
NewerOlder