Annotated edit history of
memfrob(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
MEMFROB |
|
|
2 |
!!!MEMFROB |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
memfrob - frobnicate (encrypt) a memory area |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include |
|
|
18 |
__''s''__, size_t__ ''n''__); |
|
|
19 |
__ |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The __memfrob()__ function encrypts the first ''n'' |
|
|
24 |
bytes of the memory area ''s'' by exclusive-ORing each |
|
|
25 |
character with the number 42. The effect can be reversed by |
|
|
26 |
using __memfrob()__ on the encrypted memory |
|
|
27 |
area. |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
Note that this function is not a proper encryption routine |
|
|
31 |
as the XOR constant is fixed, and is only suitable for |
|
|
32 |
hiding strings. |
|
|
33 |
!!RETURN VALUE |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
The __memfrob()__ function returns a pointer to the |
|
|
37 |
encrypted memory area. |
|
|
38 |
!!CONFORMING TO |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
The __memfrob()__ function is unique to the Linux C |
|
|
42 |
Library and GNU C Library. |
|
|
43 |
!!SEE ALSO |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
strfry(3) |
|
|
47 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.