*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> memfrob (3)              
Title
Content
Arch
Section
 

MEMFROB(3)

Contents


NAME    [Toc]    [Back]

       memfrob - frobnicate (encrypt) a memory area

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       void *memfrob(void *s, size_t n);

DESCRIPTION    [Toc]    [Back]

       The  memfrob() function encrypts the first n bytes of the memory area s
       by exclusive-ORing each character with the number 42.  The  effect  can
       be reversed by using memfrob() on the encrypted memory area.

       Note  that  this function is not a proper encryption routine as the XOR
       constant is fixed, and is only suitable for hiding strings.

RETURN VALUE    [Toc]    [Back]

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

CONFORMING TO    [Toc]    [Back]

       The  memfrob()  function  is  unique  to  the Linux C Library and GNU C
       Library.

SEE ALSO    [Toc]    [Back]

      
      
       strfry(3)



GNU				  1993-04-12			    MEMFROB(3)
[ Back ]
 Similar pages
Name OS Title
memccpy Linux copy memory area
memmove Linux copy memory area
memcpy Linux copy memory area
shmget OpenBSD get shared memory area identifier
ufmFree IRIX free an area of memory that was allocated by UFM
krb5_decrypt OpenBSD encrypt and decrypt data
krb5_decrypt_EncryptedData OpenBSD encrypt and decrypt data
krb5_encrypt OpenBSD encrypt and decrypt data
krb5_encrypt_EncryptedData OpenBSD encrypt and decrypt data
encrypt Linux Encrypt 64 bits messages
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service