{"id":22363203,"url":"https://github.com/oanderoficial/criptografando-arquivos","last_synced_at":"2026-05-14T23:10:31.125Z","repository":{"id":159006598,"uuid":"407867669","full_name":"oanderoficial/Criptografando-arquivos","owner":"oanderoficial","description":"Criptografando arquivos com Python. Utilizando o módulo hashlib.","archived":false,"fork":false,"pushed_at":"2024-02-22T22:25:28.000Z","size":256,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T15:18:02.250Z","etag":null,"topics":["criptography","linux","python","script"],"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/oanderoficial.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}},"created_at":"2021-09-18T13:27:27.000Z","updated_at":"2022-07-10T21:49:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d641099e-fa36-46a5-988f-0ddf429c4b50","html_url":"https://github.com/oanderoficial/Criptografando-arquivos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oanderoficial/Criptografando-arquivos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2FCriptografando-arquivos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2FCriptografando-arquivos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2FCriptografando-arquivos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2FCriptografando-arquivos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oanderoficial","download_url":"https://codeload.github.com/oanderoficial/Criptografando-arquivos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanderoficial%2FCriptografando-arquivos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274309266,"owners_count":25261440,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["criptography","linux","python","script"],"created_at":"2024-12-04T17:14:04.455Z","updated_at":"2026-05-14T23:10:26.103Z","avatar_url":"https://github.com/oanderoficial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Criptografando-arquivos\nCriptografando arquivos com Python. Utilizando o módulo hashlib.\n\n# code \n\n```python\n\nimport hashlib\nimport os\n\ndir_path = \"/home/ander/Documentos/tools/\"\n\nfor file_name in os.listdir(dir_path):\n    file_path = os.path.join(dir_path, file_name)\n\n    with open(file_path, 'rb') as file:\n        file_data = file.read()\n        encrypted_data = hashlib.sha512(file_data).hexdigest().encode()\n\n        new_file_name = \"(criptografado) \" + file_name\n        new_file_path = os.path.join(dir_path, new_file_name)\n\n        with open(new_file_path, 'wb') as new_file:\n            new_file.write(encrypted_data)\n\n    os.remove(file_path)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanderoficial%2Fcriptografando-arquivos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foanderoficial%2Fcriptografando-arquivos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanderoficial%2Fcriptografando-arquivos/lists"}