{"id":25369840,"url":"https://github.com/sambhu431/salt-based-encryption-and-decryption","last_synced_at":"2025-04-09T07:17:53.619Z","repository":{"id":276964629,"uuid":"930879039","full_name":"sambhu431/Salt-Based-Encryption-And-Decryption","owner":"sambhu431","description":"Securely encrypt and decrypt files and folders using salt-based, password-protected methods. Protect your data from hacking, leakage, and theft.","archived":false,"fork":false,"pushed_at":"2025-02-11T11:13:56.000Z","size":3263,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T12:25:48.924Z","etag":null,"topics":["cryptography","datasecurity","decryption","encryption","encryption-decryption","fernet","fernet-cryptography","fernet-decryption","fernet-encryption","fernet-key","pbkdf2","pbkdf2-hmac","pythonen","salt","security"],"latest_commit_sha":null,"homepage":"","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/sambhu431.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":"2025-02-11T11:09:56.000Z","updated_at":"2025-02-11T12:08:48.000Z","dependencies_parsed_at":"2025-02-11T12:35:53.837Z","dependency_job_id":null,"html_url":"https://github.com/sambhu431/Salt-Based-Encryption-And-Decryption","commit_stats":null,"previous_names":["sambhu431/salt-based-encryption-and-decryption"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhu431%2FSalt-Based-Encryption-And-Decryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhu431%2FSalt-Based-Encryption-And-Decryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhu431%2FSalt-Based-Encryption-And-Decryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambhu431%2FSalt-Based-Encryption-And-Decryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambhu431","download_url":"https://codeload.github.com/sambhu431/Salt-Based-Encryption-And-Decryption/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994134,"owners_count":21030050,"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","datasecurity","decryption","encryption","encryption-decryption","fernet","fernet-cryptography","fernet-decryption","fernet-encryption","fernet-key","pbkdf2","pbkdf2-hmac","pythonen","salt","security"],"created_at":"2025-02-15T01:34:10.665Z","updated_at":"2025-04-09T07:17:53.598Z","avatar_url":"https://github.com/sambhu431.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e Salt Based Encryption And Decryption \u003c/h1\u003e\n\n# Overview\nThis Python script offers a comprehensive solution for encrypting and decrypting files and folders using password-based methods. It addresses the core concerns, insecurities, and hesitations that individuals and companies face when sharing files, folders, or personal data over the internet due to the risk of hacking, leakage, and theft. With this salt-based encryption method, you can securely encrypt your personal, confidential data, files, and folders.\n\n\n# Features\n- **Password-Based Key Derivation**: Derives an encryption key from a password using PBKDF2HMAC.\n- **Salt Management**: Generates, saves, and loads a salt to add complexity to the encryption process.\n- **File Encryption**: Encrypts individual files using the derived key and Fernet.\n- **Folder Encryption**: Recursively encrypts all files within a specified folder.\n- **Decryption**: Uses the same generated salt key to decrypt the files and folder.\n- **Utilizing Same Salt Key**: The same salt key can be used to encrypt any number of files and folder rather than creating keys everything for each files and folder.\n\n# Requirements\n- Python \n- `cryptography` library\n\n# Installation\nTo install the required library, run:\npip install cryptography\n\n# Usage\nDerive Key from Password\nThe function derive_key_from_password(password, salt) is used to derive an encryption key from the given password and salt.\nThe program can be used to encrypt and decrypt multiple files and folder just using a common salt key. It also can be used to create multiple salt keys for each files and folders.\n\n# Save and Load Salt\n- save_salt(salt, file_name): Saves the salt to a specified file.\n\n- load_salt(file_name): Loads the salt from a specified file.\n\n# Encrypt File\nThe function encrypt_file(file_path, key) encrypts a file with the derived key using Fernet.\n\n# Decrypt File\nThe function decrypt_file(file_path, key) dencrypts a file with the derived key using Fernet.\n\n# Acknowledgments\nThis script utilizes the cryptography library for secure key derivation , decryption and encryption.\n\n# Contributions\nPlease Feel free to contribute to this project by submitting issues or pull requests. \n\nAny enhancements, bug fixes, or optimizations are extremely welcomed!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambhu431%2Fsalt-based-encryption-and-decryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambhu431%2Fsalt-based-encryption-and-decryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambhu431%2Fsalt-based-encryption-and-decryption/lists"}