{
    "content": [
        {
            "type": "text",
            "text": "# Crypt::Cipher::Anubis (perldoc)\n\n## NAME\n\nCrypt::Cipher::Anubis - Symmetric cipher Anubis, key size: 128-320 bits\n\n## SYNOPSIS\n\n### example 1\nuse Crypt::Mode::CBC;\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::Mode::CBC->new('Anubis');\nmy $ciphertext = $cbc->encrypt(\"secret data\", $key, $iv);\n### example 2 (slower)\nuse Crypt::CBC;\nuse Crypt::Cipher::Anubis;\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::CBC->new( -cipher=>'Cipher::Anubis', -key=>$key, -iv=>$iv );\nmy $ciphertext = $cbc->encrypt(\"secret data\");\n\n## DESCRIPTION\n\nThis module implements the Anubis cipher. Provided interface is compliant with Crypt::CBC\nmodule.\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::Cipher::Anubis",
        "section": "",
        "mode": "perldoc",
        "summary": "Crypt::Cipher::Anubis - Symmetric cipher Anubis, key size: 128-320 bits",
        "synopsis": "### example 1\nuse Crypt::Mode::CBC;\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::Mode::CBC->new('Anubis');\nmy $ciphertext = $cbc->encrypt(\"secret data\", $key, $iv);\n### example 2 (slower)\nuse Crypt::CBC;\nuse Crypt::Cipher::Anubis;\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::CBC->new( -cipher=>'Cipher::Anubis', -key=>$key, -iv=>$iv );\nmy $ciphertext = $cbc->encrypt(\"secret data\");",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "Anubis",
                "section": "cipher",
                "url": "https://www.chedong.com/phpMan.php/man/Anubis/cipher/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 46,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Crypt::Cipher::Anubis - Symmetric cipher Anubis, key size: 128-320 bits\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "### example 1\nuse Crypt::Mode::CBC;\n\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::Mode::CBC->new('Anubis');\nmy $ciphertext = $cbc->encrypt(\"secret data\", $key, $iv);\n\n### example 2 (slower)\nuse Crypt::CBC;\nuse Crypt::Cipher::Anubis;\n\nmy $key = '...'; # length has to be valid key size for this cipher\nmy $iv = '...';  # 16 bytes\nmy $cbc = Crypt::CBC->new( -cipher=>'Cipher::Anubis', -key=>$key, -iv=>$iv );\nmy $ciphertext = $cbc->encrypt(\"secret data\");\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module implements the Anubis cipher. Provided interface is compliant with Crypt::CBC\nmodule.\n\nBEWARE: This module implements just elementary \"one-block-(en|de)cryption\" operation - if you\nwant to encrypt/decrypt generic data you have to use some of the cipher block modes - check for\nexample Crypt::Mode::CBC, Crypt::Mode::CTR or Crypt::CBC (which will be slower).\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\n$c = Crypt::Cipher::Anubis->new($key);\n#or\n$c = Crypt::Cipher::Anubis->new($key, $rounds);\n\nencrypt\n$ciphertext = $c->encrypt($plaintext);\n\ndecrypt\n$plaintext = $c->decrypt($ciphertext);\n\nkeysize\n$c->keysize;\n#or\nCrypt::Cipher::Anubis->keysize;\n#or\nCrypt::Cipher::Anubis::keysize;\n\nblocksize\n$c->blocksize;\n#or\nCrypt::Cipher::Anubis->blocksize;\n#or\nCrypt::Cipher::Anubis::blocksize;\n\nmaxkeysize\n$c->maxkeysize;\n#or\nCrypt::Cipher::Anubis->maxkeysize;\n#or\nCrypt::Cipher::Anubis::maxkeysize;\n\nminkeysize\n$c->minkeysize;\n#or\nCrypt::Cipher::Anubis->minkeysize;\n#or\nCrypt::Cipher::Anubis::minkeysize;\n\ndefaultrounds\n$c->defaultrounds;\n#or\nCrypt::Cipher::Anubis->defaultrounds;\n#or\nCrypt::Cipher::Anubis::defaultrounds;\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "*   CryptX, Crypt::Cipher\n\n*   <https://en.wikipedia.org/wiki/Anubis(cipher)>\n",
                "subsections": []
            }
        }
    }
}