1MEMFROB(3) Linux Programmer's Manual MEMFROB(3)
2
3
4
6 memfrob - frobnicate (encrypt) a memory area
7
9 #define _GNU_SOURCE
10 #include <string.h>
11
12 void *memfrob(void *s, size_t n);
13
15 The memfrob() function encrypts the first n bytes of the memory area s
16 by exclusive-ORing each character with the number 42. The effect can
17 be reversed by using memfrob() on the encrypted memory area.
18
19 Note that this function is not a proper encryption routine as the XOR
20 constant is fixed, and is only suitable for hiding strings.
21
23 The memfrob() function returns a pointer to the encrypted memory area.
24
26 The memfrob() function is unique to the GNU C Library.
27
29 strfry(3)
30
32 This page is part of release 3.22 of the Linux man-pages project. A
33 description of the project, and information about reporting bugs, can
34 be found at http://www.kernel.org/doc/man-pages/.
35
36
37
38GNU 2007-07-26 MEMFROB(3)