1MEMFROB(3) Linux Programmer's Manual MEMFROB(3)
2
3
4
6 memfrob - frobnicate (encrypt) a memory area
7
9 #include <string.h>
10
11 void *memfrob(void *s, size_t n);
12
14 The memfrob() function encrypts the first n bytes of the memory area s
15 by exclusive-ORing each character with the number 42. The effect can
16 be reversed by using memfrob() on the encrypted memory area.
17
18 Note that this function is not a proper encryption routine as the XOR
19 constant is fixed, and is only suitable for hiding strings.
20
22 The memfrob() function returns a pointer to the encrypted memory area.
23
25 The memfrob() function is unique to the GNU C Library.
26
28 strfry(3)
29
30
31
32GNU 1993-04-12 MEMFROB(3)