{"id":39056034,"url":"https://github.com/eduardo-paes/criptografia","last_synced_at":"2026-01-17T18:00:51.792Z","repository":{"id":175662661,"uuid":"618444481","full_name":"eduardo-paes/Criptografia","owner":"eduardo-paes","description":"Implementações da disciplina de Criptografia (CEFET-RJ, Petrópolis)","archived":false,"fork":false,"pushed_at":"2023-11-30T18:14:19.000Z","size":12512,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T22:39:18.023Z","etag":null,"topics":["aes","c","criptoanalise","criptography","sbox"],"latest_commit_sha":null,"homepage":"","language":"C","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/eduardo-paes.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}},"created_at":"2023-03-24T13:36:09.000Z","updated_at":"2023-06-15T19:46:50.000Z","dependencies_parsed_at":"2023-06-29T21:31:11.206Z","dependency_job_id":null,"html_url":"https://github.com/eduardo-paes/Criptografia","commit_stats":null,"previous_names":["eduardo-paes/criptografia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduardo-paes/Criptografia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardo-paes%2FCriptografia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardo-paes%2FCriptografia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardo-paes%2FCriptografia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardo-paes%2FCriptografia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardo-paes","download_url":"https://codeload.github.com/eduardo-paes/Criptografia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardo-paes%2FCriptografia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28514939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aes","c","criptoanalise","criptography","sbox"],"created_at":"2026-01-17T18:00:30.379Z","updated_at":"2026-01-17T18:00:51.771Z","avatar_url":"https://github.com/eduardo-paes.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Implementações da disciplina de Criptografia\n\nCEFET-RJ, UnED Petrópolis (2023.1)\n\n## Tarefa 1: Algoritmo de Encriptação baseado no AES-128\n\nCriar um CLI em `C` para encriptação e decriptação de arquivos utilizando as seguintes configurações:\n\n- Método de Encriptação: `AES-128`\n- Padding: `ANSI.X9.23`\n- Modo de Encriptação: `PCBC`\n\n## Tarefa 2: Criptoanálise Linear\n\nA tarefa consiste em, dada uma tabela SBOX e um algoritmo simples, realizar as seguintes etapas:\n\n- Gerar a tabela de _bias_.\n- Encontrar as melhores expressões lineares para a chave.\n- Implemente um ataque usando as expressões obtidas explorando a estatística das expressões lineares.\n\nO algoritmo (hipotético) analisado será:\n\n- **Data:** Mensagem $m_i$ com L bytes e a chave $(k_0, k_1, k_2, k_3)$ com 4 bytes.\n- **Result:** O texto cifrado $c_i$.\n\n```c\ni = 0;\nwhile (i \u003c L) {\n    w[i] = m[i] ^ k[i] mod 4;\n    c[i] = SBOX[w[i]];\n    i = i + 1;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardo-paes%2Fcriptografia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardo-paes%2Fcriptografia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardo-paes%2Fcriptografia/lists"}