Explorar o código

Added comment in idObfuscation.php

adolfintel %!s(int64=7) %!d(string=hai) anos
pai
achega
c31ebe8fdf
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      telemetry/idObfuscation.php

+ 4 - 0
telemetry/idObfuscation.php

@@ -14,6 +14,10 @@ function getObfuscationSalt(){
 	}
 	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){
 	$salt=getObfuscationSalt()&0xFFFFFFFF;
 	$id=$id&0xFFFFFFFF;