{"id":18464871,"url":"https://github.com/acceis/crypto_identifier","last_synced_at":"2025-10-25T17:44:57.130Z","repository":{"id":110848671,"uuid":"112612251","full_name":"Acceis/crypto_identifier","owner":"Acceis","description":"Crypto tool for pentest and ctf : try to uncipher data using multiple algorithms and block chaining modes. Usefull for a quick check on unknown cipher text and key dictionnary","archived":false,"fork":false,"pushed_at":"2018-01-04T11:04:56.000Z","size":21,"stargazers_count":124,"open_issues_count":0,"forks_count":24,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-23T09:23:48.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Acceis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-30T13:04:49.000Z","updated_at":"2025-02-22T17:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c26174bf-9fb1-420e-9150-07e2ca153321","html_url":"https://github.com/Acceis/crypto_identifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2Fcrypto_identifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2Fcrypto_identifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2Fcrypto_identifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acceis%2Fcrypto_identifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Acceis","download_url":"https://codeload.github.com/Acceis/crypto_identifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804477,"owners_count":20998992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T09:11:22.433Z","updated_at":"2025-10-25T17:44:57.022Z","avatar_url":"https://github.com/Acceis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypto-identifier\n\nCrypto tool for pentest and ctf : try to uncipher data using multiple algorithms and block chaining modes.\nUsefull for a quick check on unknown cipher text and key dictionary\n\nSupported Algorithms :\n - AES\n - ARC2\n - ARC4\n - Blowfish\n - CAST\n - DES\n - DES3\n - XOR\n\nSupported modes :\n - ECB\n - CBC\n - CFB\n - OFB\n\n## Usage:\n```\npython ./crypto_identifier.py --help\nusage: crypto_identifier.py [-h] --input INPUT [--key KEY] [--keys KEYS]\n                            [--printable] [--grep GREP]\n                            [--algo {ARC4,CAST,AES,XOR,ARC2,DES,Blowfish,DES3}]\n                            [--mode {ECB,CBC,CFB,OFB}]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --input INPUT, -i INPUT\n                        input string (base64)\n  --key KEY, -k KEY     key string\n  --keys KEYS, -ks KEYS\n                        keys file\n  --printable, -p       display only printable results\n  --grep GREP, -g GREP  grep string in results\n  --algo {ARC4,CAST,AES,XOR,ARC2,DES,Blowfish,DES3}, -a {ARC4,CAST,AES,XOR,ARC2,DES,Blowfish,DES3}\n                        cipher algo to use\n  --mode {ECB,CBC,CFB,OFB}, -m {ECB,CBC,CFB,OFB}\n                        block chaining mode to use\n\n```\n## Examples :\n\n### Multi ciphers + modes\n`python ./crypto_identifier.py --input \"WpbizgqtUDjD5TV5ELVswFL92ao3T41T\" --key secret`\n\n```\nCAST128Cipher (ECB) : secret (with IV): '\\x95\\x12(\\x8d0_O8\\xc7\\xb6\\x1f\\x9b\\xc1\\xbd5\\xe0'\nCAST128Cipher (CBC) : secret (with IV): '\\xcf\\x84\\xcaC:\\xf2\\x1f\\x00\\x04S*\\xe2\\xd1\\x08Y '\nCAST128Cipher (CFB) : secret (with IV): '\\x0f\\nF\\x83\\xd6\\xbe\\x942\\xc4\\xcco\\x11p\\xa7\\x81\\xd5'\nCAST128Cipher (OFB) : secret (with IV): '\\x0f\\xfb\\xd1\\x01\\xd2L\\xed\\x18\\xc1\\x1c5^\\xfdv\\xab\\xfb'\nAESCipher (CFB) : secret (with IV): '\\x14\\xa9%\\xfdN\\xa3F\\xbf\\x9b7,0@\"\\xf6\\xb14V\\xfb{F\\xc2\\xcf?'\nARC2 (ECB) : secret (with IV): '\\xab4\\x8ac\\x93  \\xe6\\xca\\x19\\xe7\\x15M\\x7f\\xa7\\xe8'\nARC2 (CBC) : secret (with IV): '\\xf1\\xa2h\\xad\\x99\\x8dp\\xde\\t\\xfc\\xd2l]\\xca\\xcb('\nARC2 (CFB) : secret (with IV): '\\xb8\\x06r\\xaa\\x0fX\\x8c\\x92)\\x00\\xc0\\xed\\x0e\\xa8\\x0e\\xa7'\nARC2 (OFB) : secret (with IV): '\\xb87}9{\\xc8f\\xa3\\x99\\xe4\\xda?,\\x01`\\x11'\nDESCipher (ECB) : secret (with IV): 'a DES test case'\nDESCipher (CBC) : secret (with IV): ';\\xb6\\xa6\\x8bY\\x8d$]\\xb0\\x91\\x15\\x1aq\\xc6\\t\\xc0'\nDESCipher (CFB) : secret (with IV): '\\xc0\\x06\\xe6\\x7fl\\xae\\x8bv\\xee\\xcf\\x8c[\\x88\\x07!\\x07'\nDESCipher (OFB) : secret (with IV): '\\xc0\\x86ug\\x1f\\x16\\xd4)\\xff0\\xc3\\x07-\\x10\u0026\\x80'\nBlowfishCipher (ECB) : secret (with IV): '\\x1eBkl\\xbe\\x14\\x81\\x8c9*\\xaa\\xee\\xebW-3'\nBlowfishCipher (CBC) : secret (with IV): 'D\\xd4\\x89\\xa2\\xb4\\xb9\\xd1\\xb4\\xfa\\xcf\\x9f\\x97\\xfb\\xe2A\\xf3'\nBlowfishCipher (CFB) : secret (with IV): '\\x83\\xf59\\xea`-\\xfdd8KN\\xb0\\xcfYo\\xef'\nBlowfishCipher (OFB) : secret (with IV): '\\x83\\xd1V\\x01\\xdf\\xad^\\tkP5\\x94\\xeer\\xa0\\x9f'\nDES3Cipher (ECB) : secret (with IV): \"\u003c\\x00ml\\xa0\\xc1\\x84\\\\\\xcf\\x1e,o'\\xbd\\xa1\\xa8\"\nDES3Cipher (CBC) : secret (with IV): 'f\\x96\\x8f\\xa2\\xaal\\xd4d\\x0c\\xfb\\x19\\x167\\x08\\xcdh'\nDES3Cipher (CFB) : secret (with IV): '\\x8e\\xe2\\x04\\x9a\\xaa\\x08\\xedJ\\xfd%(\\xa2F\\x92\\x06\\xa9'\nDES3Cipher (OFB) : secret (with IV): '\\x8eS+\\x18\\xce[\\xc5\\x0f\\x13\\xc7k8\\xde\\xbc\\xdaF'\nARC4Cipher : secret : '\\xb7\\xa00\\xd2\\x88\\t\\x86\\x9e\\xf1.\\x8e\\xa5\\xe3S\\x99\\xf7\\xff\\xca\\xabH\\xb4\\xbcI\\x0f'\nCAST128Cipher (ECB) : secret : '\\xc7\\xcby\\r\\xd4\\xe6\\xcf\\xa7\\x95\\x12(\\x8d0_O8\\xc7\\xb6\\x1f\\x9b\\xc1\\xbd5\\xe0'\nCAST128Cipher (CBC) : secret : '\\xc7\\xcby\\r\\xd4\\xe6\\xcf\\xa7\\xcf\\x84\\xcaC:\\xf2\\x1f\\x00\\x04S*\\xe2\\xd1\\x08Y '\nCAST128Cipher (CFB) : secret : '\\xc6\\xa4\u003c\\xf0\u003e\\xe3\\x1dg\\x0f\\nF\\x83\\xd6\\xbe\\x942\\xc4\\xcco\\x11p\\xa7\\x81\\xd5'\nCAST128Cipher (OFB) : secret : '\\xc6\\x8a\"?\\xd5#=\\x9931;a\\xdaB\\xd0v\\xcbQ\u003e6+L\\xc1\\x9d'\nAESCipher (CFB) : secret : '\\x14\\xa9%\\xfdN\\xa3F\\xbf\\x9b7,0@\"\\xf6\\xb14V\\xfb{F\\xc2\\xcf?'\nXORCipher : secret : \")\\xf3\\x81\\xbco\\xd9#]\\xa0\\x97P\\rc\\xd0\\x0f\\xb27\\x89\\xaa\\xcfT=\\xe8'\"\nARC2 (ECB) : secret : '\\x97 \\xb6\\x9b\\xb5Z\\x8a\\xdc\\xab4\\x8ac\\x93  \\xe6\\xca\\x19\\xe7\\x15M\\x7f\\xa7\\xe8'\nARC2 (CBC) : secret : '\\x97 \\xb6\\x9b\\xb5Z\\x8a\\xdc\\xf1\\xa2h\\xad\\x99\\x8dp\\xde\\t\\xfc\\xd2l]\\xca\\xcb('\nARC2 (CFB) : secret : 'U\\xef\\x12x\\x0b\\x88\\x87*\\xb8\\x06r\\xaa\\x0fX\\x8c\\x92)\\x00\\xc0\\xed\\x0e\\xa8\\x0e\\xa7'\nARC2 (OFB) : secret : 'U\\r\\x86r\\xfc|2\\xbf\\xfb\\xb0\\xa2\\xaf\\xba\\xe0\\xad\\x8f6\\x9aY\\xd9\\x926\\x8c{'\nDESCipher (ECB) : secret : 'This is a DES test case'\nDESCipher (CBC) : secret : 'This is ;\\xb6\\xa6\\x8bY\\x8d$]\\xb0\\x91\\x15\\x1aq\\xc6\\t\\xc0'\nDESCipher (CFB) : secret : '\u003e\u003e\\xd2\\xfd\\xe4\\xf0!y\\xc0\\x06\\xe6\\x7fl\\xae\\x8bv\\xee\\xcf\\x8c[\\x88\\x07!\\x07'\nDESCipher (OFB) : secret : '\u003e\\x1942H\\x03\\x04\\xd6\\x9a\\xbd2v\\x9b\\x16\\x19\\r\\xb0\\xe5\u0026\\x1e(\\xce\\x0f\\x12'\nBlowfishCipher (ECB) : secret : '\\xac\\xb6\\xcbz\\xe8\\xd76\\x91\\x1eBkl\\xbe\\x14\\x81\\x8c9*\\xaa\\xee\\xebW-3'\nBlowfishCipher (CBC) : secret : '\\xac\\xb6\\xcbz\\xe8\\xd76\\x91D\\xd4\\x89\\xa2\\xb4\\xb9\\xd1\\xb4\\xfa\\xcf\\x9f\\x97\\xfb\\xe2A\\xf3'\nBlowfishCipher (CFB) : secret : '#X\\xe0\\rS\\xf0y\\xfe\\x83\\xf59\\xea`-\\xfdd8KN\\xb0\\xcfYo\\xef'\nBlowfishCipher (OFB) : secret : '#?\\xa1\\x06T\\x7f\\x98\\x19\\x0b\\x000\\xf3\\x1a\\xa9\\x08.\\x94\\x8f\\xd1a\\x9c\\x16\\xe6\\xb1'\nDES3Cipher (ECB) : secret : \"\\x90\\xc9\\xa5\\xd0\\x18)'\\x94\u003c\\x00ml\\xa0\\xc1\\x84\\\\\\xcf\\x1e,o'\\xbd\\xa1\\xa8\"\nDES3Cipher (CBC) : secret : \"\\x90\\xc9\\xa5\\xd0\\x18)'\\x94f\\x96\\x8f\\xa2\\xaal\\xd4d\\x0c\\xfb\\x19\\x167\\x08\\xcdh\"\nDES3Cipher (CFB) : secret : 'zp-\\x9d\\xb5\\xe8R\\x1a\\x8e\\xe2\\x04\\x9a\\xaa\\x08\\xedJ\\xfd%(\\xa2F\\x92\\x06\\xa9'\nDES3Cipher (OFB) : secret : 'z\\xe1DY\\x07\\x17#Y6n\\xbf\\xd8\\x15%\\xbc\\x0f\u003cM\\x9c\\xa60I\\x9a\\xbe'\n```\n\n### Multi ciphers + modes, print only printable results\n`python ./crypto_identifier.py --input \"WpbizgqtUDjD5TV5ELVswFL92ao3T41T\" --key secret --printable`\n\n```\nDESCipher (ECB) : secret (with IV): a DES test case\nDESCipher (ECB) : secret : This is a DES test case\n```\n\n### Single cipher / single mode\n`python ./crypto_identifier.py --input \"WpbizgqtUDjD5TV5ELVswFL92ao3T41T\" --key secret --algo DES --mode ECB`\n\n```\nDESCipher (ECB) : secret (with IV): 'a DES test case'\nDESCipher (ECB) : secret : 'This is a DES test case'\n```\n\n### using a dictionary as keys\n`python ./crypto_identifier.py --input \"WpbizgqtUDjD5TV5ELVswFL92ao3T41T\" --keys ./500-worst-passwords.txt --printable`\n\n```\nDESCipher (ECB) : secret (with IV): a DES test case\nDESCipher (ECB) : secret : This is a DES test case\n```\n\n## Requirements:\n Python 2.7 / 3.x\n - Argparse\n - Crypto\n\n## License\n```\n----------------------------------------------------------------------------\n\"THE BEER-WARE LICENSE\" (Revision 42):\nGanapati (@G4N4P4T1) wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think\nthis stuff is worth it, you can buy me a beer in return.\n----------------------------------------------------------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceis%2Fcrypto_identifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facceis%2Fcrypto_identifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceis%2Fcrypto_identifier/lists"}