{"id":15008750,"url":"https://github.com/clach04/openssl_enc_compat","last_synced_at":"2026-03-16T07:06:46.176Z","repository":{"id":214702627,"uuid":"737150611","full_name":"clach04/openssl_enc_compat","owner":"clach04","description":"Pure Python library that is compatible with OpenSSL 1.1.0+ encryption and decryption","archived":false,"fork":false,"pushed_at":"2024-01-01T18:33:50.000Z","size":54,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-20T21:38:24.212Z","etag":null,"topics":["aes","aes-256","aes-cbc","aes-encryption","base64","decryption","encryption","encryption-decryption","openssl","pbkdf2","python","python2","python27","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/openssl-enc-compat/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clach04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-30T01:38:49.000Z","updated_at":"2023-12-31T16:47:49.000Z","dependencies_parsed_at":"2024-01-01T19:42:54.646Z","dependency_job_id":null,"html_url":"https://github.com/clach04/openssl_enc_compat","commit_stats":null,"previous_names":["clach04/openssl_enc_compat"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fopenssl_enc_compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fopenssl_enc_compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fopenssl_enc_compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fopenssl_enc_compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clach04","download_url":"https://codeload.github.com/clach04/openssl_enc_compat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243204600,"owners_count":20253414,"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":["aes","aes-256","aes-cbc","aes-encryption","base64","decryption","encryption","encryption-decryption","openssl","pbkdf2","python","python2","python27","python3"],"created_at":"2024-09-24T19:20:22.185Z","updated_at":"2026-03-16T07:06:46.162Z","avatar_url":"https://github.com/clach04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openssl_enc_compat\n\nPure Python 2.7 and 3.x library that is compatible with OpenSSL 1.1.0+ encryption and decryption.\nhttps://github.com/clach04/openssl_enc_compat\n\nThis is intended to be used a library, rather than as a command line tool.\nCan encrypt/decrypt raw binary and base64 encoded content.\nOnly supports aes-256-cbc with salt using pbkdf2. pbkdf2 iterations defaults to 10,000 to match OpenSSL default but can be specified.\n\nAlso checkout:\n\n  * https://github.com/The-Crocop/pyaes256 - lots of dependencies with a nice API but limited to utf-8 data\n  * https://github.com/EbryxLabs/opencrypt - Python 3 only with a filename only API (and command line tools)\n  * https://github.com/Madhava-mng/openssltool - Python 3 only wrapper around openssl command line tool\n\n## Sample\n\n    from openssl_enc_compat.cipher import OpenSslEncDecCompat\n\n    # echo hello| openssl enc -e aes-256-cbc -salt -pbkdf2 -iter 10000 -in - -base64 -out - -pass pass:password\n    openssl_crypted_base64_text = 'U2FsdGVkX18NXhFhTlAyvM2jXPu+hhsT344TvO0yLYk='  # base64\n    openssl_crypted_base64_text = b'Salted__\\r^\\x11aNP2\\xbc\\xcd\\xa3\\\\\\xfb\\xbe\\x86\\x1b\\x13\\xdf\\x8e\\x13\\xbc\\xed2-\\x89'  # raw binary\n    password = b'password'\n\n    print('openssl_crypted_base64_text: %r' % openssl_crypted_base64_text)\n    print('password: %r' % password)\n\n    cipher = OpenSslEncDecCompat(password)  # guess/default\n    plaintext = cipher.decrypt(openssl_crypted_base64_text)  # guesses if base64 encoded or note\n    print('plaintext: %r' % plaintext)\n\nQuick demo:\n\n    python -m openssl_enc_compat.cipher\n\n## Run tests\n\n    python -m openssl_enc_compat.tests.testsuite -v\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclach04%2Fopenssl_enc_compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclach04%2Fopenssl_enc_compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclach04%2Fopenssl_enc_compat/lists"}