Node:Trivial Encryption, Next:Encode Binary Data, Previous:strfry, Up:String and Array Utilities
The memfrob
function converts an array of data to something
unrecognizable and back again. It is not encryption in its usual sense
since it is easy for someone to convert the encrypted data back to clear
text. The transformation is analogous to Usenet's "Rot13" encryption
method for obscuring offensive jokes from sensitive eyes and such.
Unlike Rot13, memfrob
works on arbitrary binary data, not just
text.
For true encryption, See Cryptographic Functions.
This function is declared in string.h
.
void * memfrob (void *mem, size_t length) | Function |
Note that This is a good function for hiding information from someone who doesn't want to see it or doesn't want to see it very much. To really prevent people from retrieving the information, use stronger encryption such as that described in See Cryptographic Functions. Portability Note: This function is unique to the GNU C library. |