Crypt::Memfrob - memfrob implementation in pure Perl
use Crypt::Memfrob 'memfrob'; my $frobed = memfrob($str);
This package provides one function 'memfrob.' This is equivalent to the memfrob function included in glibc. With this library, you can generate glibc-compatible frobnicated (encrypted) strings, and defrobnicate glibc-generated strings, in Perl.
This function frobnicates given string and returns the result.
This library is based on GNU libc 2.2.4. From memfrob(3):
The memfrob() function encrypts the first n bytes of the memory areas 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.
memfrob(3).
Copyright 2001 Keiichiro Nagano <knagano@sodan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Crypt::Memfrob, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Memfrob
CPAN shell
perl -MCPAN -e shell install Crypt::Memfrob
For more information on module installation, please visit the detailed CPAN module installation guide.