]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/csqc_builtins.qc
RPN: offer the digest_hex command
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / csqc_builtins.qc
index 48012e7a4ccf4a4c4fcd56dac92109dc095dd33f..6ef34f35eab5fa8109e2eda628b889ace10a431d 100644 (file)
@@ -336,3 +336,15 @@ float trace_dphitcontents;
 float trace_networkentity;
 
 string(string search, string replace, string subject) strreplace = #484;
+
+//DP_QC_DIGEST
+//idea: motorsep, Spike
+//DarkPlaces implementation: divVerent
+//builtin definitions:
+string(string digest, string data, ...) digest_hex = #639;
+//description:
+//returns a given hex digest of given data
+//the returned digest is always encoded in hexadecimal
+//only the "MD4" digest is always supported!
+//if the given digest is not supported, string_null is returned
+//the digest string is matched case sensitively, use "MD4", not "md4"!