Added comment in idObfuscation.php
This commit is contained in:
parent
7d2d62b5ef
commit
c31ebe8fdf
|
@ -14,6 +14,10 @@ function getObfuscationSalt(){
|
||||||
}
|
}
|
||||||
return isset($OBFUSCATION_SALT)?$OBFUSCATION_SALT:0;
|
return isset($OBFUSCATION_SALT)?$OBFUSCATION_SALT:0;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
This is a simple reversible hash function I made for encoding and decoding test IDs.
|
||||||
|
It is not cryptographically secure, don't use it to hash passwords or something!
|
||||||
|
*/
|
||||||
function obfdeobf($id){
|
function obfdeobf($id){
|
||||||
$salt=getObfuscationSalt()&0xFFFFFFFF;
|
$salt=getObfuscationSalt()&0xFFFFFFFF;
|
||||||
$id=$id&0xFFFFFFFF;
|
$id=$id&0xFFFFFFFF;
|
||||||
|
|
Loading…
Reference in a new issue