{"id":19275282,"url":"https://github.com/jangko/nimaes","last_synced_at":"2025-04-09T16:19:16.988Z","repository":{"id":54873785,"uuid":"41552418","full_name":"jangko/nimAES","owner":"jangko","description":"Advanced Encryption Standard, Rinjdael Algorithm written in Nim","archived":false,"fork":false,"pushed_at":"2022-08-09T07:10:04.000Z","size":781,"stargazers_count":54,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T16:19:05.255Z","etag":null,"topics":["aes-256","aes-encryption","encryption","encryption-standard","nim","rinjdael-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/jangko.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}},"created_at":"2015-08-28T14:43:53.000Z","updated_at":"2024-08-18T06:41:50.000Z","dependencies_parsed_at":"2022-08-14T05:20:42.925Z","dependency_job_id":null,"html_url":"https://github.com/jangko/nimAES","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangko%2FnimAES","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangko%2FnimAES/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangko%2FnimAES/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jangko%2FnimAES/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jangko","download_url":"https://codeload.github.com/jangko/nimAES/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065281,"owners_count":21041872,"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-256","aes-encryption","encryption","encryption-standard","nim","rinjdael-algorithm"],"created_at":"2024-11-09T20:50:02.610Z","updated_at":"2025-04-09T16:19:16.964Z","avatar_url":"https://github.com/jangko.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **nimAES**\n### Advanced Encryption Standard\n#### Rinjdael Algorithm written in Nim\n\ninitially this was part of [nimPDF](https://github.com/jangko/nimpdf) project, then I decided to release it separately\n\nexample:\n\n```nimrod\nvar aes = initAES()\nlet input = \"0123456789ABCDEF\"\nlet key = \"FEDCBA9876543210\"\nif aes.setEncodeKey(key):\n  let encrypted = aes.encryptECB(input)\n  if aes.setDecodeKey(key):\n    let decrypted = aes.decryptECB(encrypted)\n    assert decrypted == input\n```\n\nboth setEncodeKey and setDecodeKey accept 128, 192, and 256 bits key length\n\nsupported mode:\n\n| MODE | Codec Pair | IV 16 bytes | IO | EncKey | DecKey |\n|--------|------------|-------------|:----------:|--------|--------|\n| ECB | yes | no | 1 block | yes | yes |\n| CBC | yes | yes | n x blocks | yes | yes |\n| CFB128 | yes | yes | n x blocks | yes | no |\n| CFB8 | yes | yes | n x blocks | yes | no |\n| CTR | no | yes | stream | yes | no |\n| OFB | no | yes | n x blocks | yes | no |\n\noutput length always same with input length\n\n1 block equal to 16 bytes\n\nCTR mode accept arbitrary input length\n\nIV = Initialization Vector\n\nCodec Pair:\n\n - yes: have encrypt and decrypt\n - no: only one function both for encrypt and decrypt","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjangko%2Fnimaes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjangko%2Fnimaes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjangko%2Fnimaes/lists"}