1MEMFROB(3)                 Linux Programmer's Manual                MEMFROB(3)
2
3
4

NAME

6       memfrob - frobnicate (encrypt) a memory area
7

SYNOPSIS

9       #define _GNU_SOURCE
10       #include <string.h>
11
12       void *memfrob(void *s, size_t n);
13

DESCRIPTION

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

RETURN VALUE

23       The memfrob() function returns a pointer to the encrypted memory area.
24

CONFORMING TO

26       The memfrob() function is unique to the GNU C Library.
27

SEE ALSO

29       strfry(3)
30

COLOPHON

32       This page is part of release 3.25 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)
Impressum