{
    "content": [
        {
            "type": "text",
            "text": "# Crypt::RC4 (perldoc)\n\n## NAME\n\nCrypt::RC4 - Perl implementation of the RC4 encryption algorithm\n\n## SYNOPSIS\n\n# Functional Style use Crypt::RC4; $encrypted = RC4( $passphrase, $plaintext ); $decrypt = RC4(\n$passphrase, $encrypted );\n# OO Style use Crypt::RC4; $ref = Crypt::RC4->new( $passphrase ); $encrypted = $ref->RC4(\n$plaintext );\n$ref2 = Crypt::RC4->new( $passphrase );\n$decrypted = $ref2->RC4( $encrypted );\n# process an entire file, one line at a time # (Warning: Encrypted file leaks line lengths.)\n$ref3 = Crypt::RC4->new( $passphrase ); while (<FILE>) { chomp; print $ref3->RC4($), \"\\n\"; }\n\n## DESCRIPTION\n\nA simple implementation of the RC4 algorithm, developed by RSA Security, Inc. Here is the\ndescription from RSA's website:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **BUGS**\n- **LICENSE**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Crypt::RC4",
        "section": "",
        "mode": "perldoc",
        "summary": "Crypt::RC4 - Perl implementation of the RC4 encryption algorithm",
        "synopsis": "# Functional Style use Crypt::RC4; $encrypted = RC4( $passphrase, $plaintext ); $decrypt = RC4(\n$passphrase, $encrypted );\n# OO Style use Crypt::RC4; $ref = Crypt::RC4->new( $passphrase ); $encrypted = $ref->RC4(\n$plaintext );\n$ref2 = Crypt::RC4->new( $passphrase );\n$decrypted = $ref2->RC4( $encrypted );\n# process an entire file, one line at a time # (Warning: Encrypted file leaks line lengths.)\n$ref3 = Crypt::RC4->new( $passphrase ); while (<FILE>) { chomp; print $ref3->RC4($), \"\\n\"; }",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Crypt::RC4 - Perl implementation of the RC4 encryption algorithm\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# Functional Style use Crypt::RC4; $encrypted = RC4( $passphrase, $plaintext ); $decrypt = RC4(\n$passphrase, $encrypted );\n\n# OO Style use Crypt::RC4; $ref = Crypt::RC4->new( $passphrase ); $encrypted = $ref->RC4(\n$plaintext );\n\n$ref2 = Crypt::RC4->new( $passphrase );\n$decrypted = $ref2->RC4( $encrypted );\n\n# process an entire file, one line at a time # (Warning: Encrypted file leaks line lengths.)\n$ref3 = Crypt::RC4->new( $passphrase ); while (<FILE>) { chomp; print $ref3->RC4($), \"\\n\"; }\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "A simple implementation of the RC4 algorithm, developed by RSA Security, Inc. Here is the\ndescription from RSA's website:\n\nRC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA Security). It is a\nvariable key-size stream cipher with byte-oriented operations. The algorithm is based on the use\nof a random permutation. Analysis shows that the period of the cipher is overwhelmingly likely\nto be greater than 10100. Eight to sixteen machine operations are required per output byte, and\nthe cipher can be expected to run very quickly in software. Independent analysts have\nscrutinized the algorithm and it is considered secure.\n\nBased substantially on the \"RC4 in 3 lines of perl\" found at http://www.cypherspace.org\n\nA major bug in v1.0 was fixed by David Hook (dgh@wumpus.com.au). Thanks, David.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Kurt Kincaid (sifukurt@yahoo.com) Ronald Rivest for RSA Security, Inc.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "Disclaimer: Strictly speaking, this module uses the \"alleged\" RC4 algorithm. The Algorithm known\nas \"RC4\" is a trademark of RSA Security Inc., and this document makes no claims one way or\nanother that this is the correct algorithm, and further, make no claims about the quality of the\nsource code nor any licensing requirements for commercial use.\n\nThere's nothing preventing you from using this module in an insecure way which leaks\ninformation. For example, encrypting multilple messages with the same passphrase may allow an\nattacker to decode all of them with little effort, even though they'll appear to be secured. If\nserious crypto is your goal, be careful. Be very careful.\n\nIt's a pure-Perl implementation, so that rating of \"Eight to sixteen machine operations\" is good\nfor nothing but a good laugh. If encryption and decryption are a bottleneck for you, please\nre-write this module to use native code wherever practical.\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This is free software and may be modified and/or redistributed under the same terms as Perl\nitself.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "perl, <http://www.cypherspace.org>, <http://www.rsasecurity.com>,\n<http://www.achtung.com/crypto/rc4.html>, <http://www.columbia.edu/~ariel/ssleay/rrc4.html>\n",
                "subsections": []
            }
        }
    }
}