This file contains 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 | |
/** | |
* WARNING: This class is only to make layers of salts to a password, its definitely not secure for encryption, it's my first attempted algorithm ever. | |
* | |
* @author xize | |
* Class salt | |
*/ | |
class Salt { |
This file contains 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 | |
class Salt { | |
private static $generator; | |
protected function __construct() {} //allow the class to be instanced only by it self. | |
public static function getGenerator() { | |
if(SELF::$generator instanceof Salt) { | |
return SELF::$generator; |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am xize on github. | |
* I am xize (https://keybase.io/xize) on keybase. | |
* I have a public key whose fingerprint is 6392 5029 43DC 6D31 D4EC E163 1540 96FC 0595 858C | |
To claim this, I am signing this object: |