{
    "content": [
        {
            "type": "text",
            "text": "# Crypt::Stream::Sober128 (perldoc)\n\n## NAME\n\nCrypt::Stream::Sober128 - Stream cipher Sober128\n\n## SYNOPSIS\n\nuse Crypt::Stream::Sober128;\n# encrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$ct = $stream->crypt(\"plain message\");\n# decrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$pt = $stream->crypt($ct);\n\n## DESCRIPTION\n\nProvides an interface to the Sober128 stream cipher.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Crypt::Stream::Sober128",
        "section": "",
        "mode": "perldoc",
        "summary": "Crypt::Stream::Sober128 - Stream cipher Sober128",
        "synopsis": "use Crypt::Stream::Sober128;\n# encrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$ct = $stream->crypt(\"plain message\");\n# decrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$pt = $stream->crypt($ct);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Crypt::Stream::Sober128 - Stream cipher Sober128\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Crypt::Stream::Sober128;\n\n# encrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$ct = $stream->crypt(\"plain message\");\n\n# decrypt\n$key = \"1234567890123456\";\n$iv  = \"123456789012\";\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n$pt = $stream->crypt($ct);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Provides an interface to the Sober128 stream cipher.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\n$stream = Crypt::Stream::Sober128->new($key, $iv);\n# $key .. keylen must be multiple of 4 bytes\n# $iv  .. ivlen must be multiple of 4 bytes\n\ncrypt\n$ciphertext = $stream->crypt($plaintext);\n#or\n$plaintext = $stream->crypt($ciphertext);\n\nkeystream\n$randomkey = $stream->keystream($length);\n\nclone\n$stream->clone();\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "*   Crypt::Stream::RC4, Crypt::Stream::ChaCha, Crypt::Stream::Salsa20, Crypt::Stream::Sosemanuk\n\n*   <https://en.wikipedia.org/wiki/SOBER-128>\n",
                "subsections": []
            }
        }
    }
}