{"id":18982485,"url":"https://github.com/justscott/listcrypt","last_synced_at":"2025-11-11T02:03:34.932Z","repository":{"id":41368416,"uuid":"473401035","full_name":"JustScott/ListCrypt","owner":"JustScott","description":"Symmetric cryptographic algorithm built with python3","archived":false,"fork":false,"pushed_at":"2023-01-03T21:07:03.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T03:47:21.924Z","etag":null,"topics":["cryptography","encryption","python38","symmetric-cryptography","symmetric-key-cryptography"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/listcrypt/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JustScott.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}},"created_at":"2022-03-24T00:18:14.000Z","updated_at":"2024-02-09T15:43:54.000Z","dependencies_parsed_at":"2023-02-01T10:05:12.270Z","dependency_job_id":null,"html_url":"https://github.com/JustScott/ListCrypt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustScott%2FListCrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustScott%2FListCrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustScott%2FListCrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustScott%2FListCrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustScott","download_url":"https://codeload.github.com/JustScott/ListCrypt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239987120,"owners_count":19729748,"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":["cryptography","encryption","python38","symmetric-cryptography","symmetric-key-cryptography"],"created_at":"2024-11-08T16:13:41.882Z","updated_at":"2025-11-11T02:03:34.878Z","avatar_url":"https://github.com/JustScott.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cp align='center'\u003eListCrypt\u003c/p\u003e\n\u003ch3 align='center'\u003e Symmetric cryptographic algorithm built in python3.8 \u003c/h3\u003e\n\u003ch4 align='center'\u003e ( ListCrypt is NOT intended for production use ) \u003c/h4\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Example Use\n```python\n\u003e\u003e\u003e from listcrypt import encrypt,decrypt\n\u003e\u003e\u003e\n\u003e\u003e\u003e key = \"example key\"\n\u003e\u003e\u003e data = \"testing 1.. 2.. 3..\" \n\u003e\u003e\u003e\n\u003e\u003e\u003e e = encrypt(key, data)\n\u003e\u003e\u003e print(e)\nb'AV#\\x18t*\\x12\\x1c@\\x01\\x1b%U4k\u003eM*w z\\x7f\\x17]afh\\x07 \\x04'\n\u003e\u003e\u003e\n\u003e\u003e\u003e d = decrypt(key, e)\n\u003e\u003e\u003e print(d)\ntesting 1.. 2.. 3..\n\n```\n\u003ch4\u003eEasily Encrypt and Decrypt Files with the 'encrypt_file' and 'decrypt_file' Functions\u003c/h4\u003e\n\n```python\n\u003e\u003e\u003e from listcrypt import encrypt_file, decrypt_file\n\u003e\u003e\u003e\n\u003e\u003e\u003e file_name = \"file.txt\"\n\u003e\u003e\u003e key = \"example key\"\n\u003e\u003e\u003e\n\u003e\u003e\u003e encrypt_file(key, path)\nTrue\n\u003e\u003e\u003e decrypt_file(key, path)\nTrue\n\n```\n\n\u003cbr\u003e\n\n# Documentation\n```python\n'''\nFunctions:\n    sha256(data: str) -\u003e str:\n        Simple hashing function, utilizes the builtin hashlib module\n\n    data_verification(key:str, data:str) -\u003e bool:\n        Verifies that your data will be encrypted and decrypted without error\n\n    convert_data(key:str, data:'any data type') -\u003e str and str:\n        Converts the data to a string format for encryption\n\n    convert_data_back(metadata: list) -\u003e any\n        Converts the data back to its origional type as given by the 'origional_data_type' parameter\n        in the 'metadata' list.  This is built to work seamlessly with the 'convert_data' function.\n\n    range_finder(data:str or bytes) -\u003e int:\n        Finds the character with the largest integer equivalent in your data\n\n    create_key(key:str, data_length:int) -\u003e bytes\n        Uses the sha256 hash of the 'key' parameter to create and concatenate more keys (based upon the origional) to a new\n        key variable that is either the same size as or slighty larger than the length of the data\n\n    segment_data(data:str, segments:int) -\u003e list\n        Splits the data evenly amongst the amount of 'segments' required\n\n\tpull_metadata(key:str, data:bytes) -\u003e dict\n\t\tPulls metadata from the encrypted bytes and puts it in a dictionary for easy readibility\n\n    encrypt(key:'any data type', data:'any data type', processes=cpu_count()) -\u003e bytes\n        Encrypts the data by adding each characters integer equivalent to the integer equivalent of the character in\n        the same position in the new key variable generated by the 'key parameter'\n\n        Nested Function:\n            multiprocess_decryption(data:str, segment:int, shared_dictionary:dict) -\u003e bool\n                Takes chuncks of data and adds them to a shared dictionary,\n                with the keys being the segments origional position for concatenation\n                after encryption\n\n    decrypt(key:\"any data type\", encrypted_data:bytes, processes=cpu_count()) -\u003e \"origional data\"\n        Encrypts the data by adding each characters integer equivalent to the integer equivalent of the character in\n        the same position in the new key variable generated by the 'key parameter'\n\n        Nested_Function:\n            multiprocess_encryption(data:str, segment:int, shared_dictionary:dict) -\u003e bool\n                Takes chuncks of data and adds them to a shared dictionary,\n                with the keys being the segments origional position for concatenation\n                after decryption\n\n    remove_image_exif(path:str) -\u003e bool\n        Removes the metadata from the provided image, which may cause\n        unwanted effects like image rotating, but will reduce the file size greatly\n\n    encrypt_file(key:str, path:str, metadata_removal=True) -\u003e bool\n        This function enables the easy encryption of files\n\n\n    decrypt_file(key:str, path:str) -\u003e bool\n        This function enables the easy decryption of files\n'''\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustscott%2Flistcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustscott%2Flistcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustscott%2Flistcrypt/lists"}