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 | |
| /** | |
| * Generate a random key | |
| * | |
| * Generate a random key based on the specified hashing algorithm and given length. | |
| * The algorithm defaults to "sha256" and the length defaults to 1024. | |
| * See PHP's hash_algos() function for a list of supported hashing algorithms. | |
| * | |
| * @param string $algo The hashing algorithm to use | |
| * @param int $length Length of desired string of bytes to create the hash |
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
| $config = array('AL' => "Alabama", | |
| 'AK' => "Alaska", | |
| 'AZ' => "Arizona", | |
| 'AR' => "Arkansas", | |
| 'CA' => "California", | |
| 'CO' => "Colorado", | |
| 'CT' => "Connecticut", | |
| 'DE' => "Delaware", | |
| 'DC' => "District Of Columbia", | |
| 'FL' => "Florida", |