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 | |
/** | |
* Function to generate a salted password hash to be used in a 'security.json' | |
* file to secure Apache Solr. | |
* This is the core function that you can extract for use in your own code. | |
* | |
* @see https://lucene.apache.org/solr/guide/basic-authentication-plugin.html#enable-basic-authentication | |
* | |
* @param string $pw The password to hash |