Skip to content

Instantly share code, notes, and snippets.

View xize's full-sized avatar

Guido Lucassen xize

View GitHub Profile
@xize
xize / Salt.php
Created October 15, 2015 13:28
my first algorithm!
<?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 {
@xize
xize / Salt.php
Last active December 28, 2015 06:11
version 2
<?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;
### 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: