From: Alejandro Colomar Date: Sun, 6 Mar 2022 19:23:09 +0000 (+0100) Subject: memfrob.3: wfix X-Git-Tag: man-pages-5.19-rc1~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6950157bc4522bac2fff6edcf09b439bc2b8617;p=thirdparty%2Fman-pages.git memfrob.3: wfix This function doesn't encrypt. It encodes, which is different. But I used the word obfuscate, which is the same that glibc uses, and it is very clear, I think. Signed-off-by: Alejandro Colomar --- diff --git a/man3/memfrob.3 b/man3/memfrob.3 index 4087976ecf..76c6ebd2d2 100644 --- a/man3/memfrob.3 +++ b/man3/memfrob.3 @@ -9,7 +9,7 @@ .\" Modified Sat Jul 24 18:54:45 1993 by Rik Faith (faith@cs.unc.edu) .TH MEMFROB 3 2021-03-22 "GNU" "Linux Programmer's Manual" .SH NAME -memfrob \- frobnicate (encrypt) a memory area +memfrob \- frobnicate (obfuscate) a memory area .SH SYNOPSIS .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" @@ -20,20 +20,20 @@ memfrob \- frobnicate (encrypt) a memory area .SH DESCRIPTION The .BR memfrob () -function encrypts the first \fIn\fP bytes of the +function obfuscates the first \fIn\fP bytes of the memory area \fIs\fP by exclusive-ORing each character with the number 42. The effect can be reversed by using .BR memfrob () on the -encrypted memory area. +obfuscated memory area. .PP Note that this function is not a proper encryption routine as the XOR constant is fixed, and is suitable only for hiding strings. .SH RETURN VALUE The .BR memfrob () -function returns a pointer to the encrypted memory +function returns a pointer to the obfuscated memory area. .SH ATTRIBUTES For an explanation of the terms used in this section, see