Ok so i am geting this error
Fatal error: Call to undefined function mcrypt_create_iv() in ..... on line 8
Now ive done some reading and found out that i need to install or update my php, problem is im not using my university server and cant update it, well at least i don't think i can.
Is there a simple way around this.
Hash.php
<?php
class Hash {
public static function make($string, $salt = '') {
return hash('sha256', $string . $salt);
}
public static function salt($length) {
return mcrypt_create_iv($length);
}
public static function unique() {
return self::make(uniqid());
}
}