{"id":22081623,"url":"https://github.com/vunb/anhttt","last_synced_at":"2026-03-19T21:39:57.813Z","repository":{"id":36374968,"uuid":"40679821","full_name":"vunb/anhttt","owner":"vunb","description":"public-key-crypto-js. An ninh hệ thống thông tin. Chương trình mô phỏng các thuật toán mã hóa công khai, cài đặt mã bằng javascript","archived":false,"fork":false,"pushed_at":"2018-09-23T05:59:15.000Z","size":1225,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T04:34:56.459Z","etag":null,"topics":["anhttt","demo","elgamal","gcd","key-crypto-js","rsa","sinh","uet"],"latest_commit_sha":null,"homepage":"https://vunb.github.io/anhttt","language":"HTML","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/vunb.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-13T20:18:18.000Z","updated_at":"2024-05-17T19:10:20.000Z","dependencies_parsed_at":"2022-09-05T16:41:39.325Z","dependency_job_id":null,"html_url":"https://github.com/vunb/anhttt","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/vunb%2Fanhttt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunb%2Fanhttt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunb%2Fanhttt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunb%2Fanhttt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vunb","download_url":"https://codeload.github.com/vunb/anhttt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168912,"owners_count":20571804,"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":["anhttt","demo","elgamal","gcd","key-crypto-js","rsa","sinh","uet"],"created_at":"2024-11-30T23:24:44.686Z","updated_at":"2026-01-05T13:08:04.694Z","avatar_url":"https://github.com/vunb.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# public-key-crypto-js\n## Cài đặt và Mô phỏng các thuật toán:\n\n* Thuật toán Euclid tính ước số chung: gcd(`a`, `b`)\n* Thuật toán Euclid mở rộng tính nghịch đảo `b` theo modulo `a`: egcd(`a`, `b`)\n* Thuật toán bình phương và nhân tính `x` lũy thừa `e` theo modulo `n`: powmod(`x`, `e`, `n`)\n* Tìm phần tử nguyên thủy (sinh): `alpha`\n\n## Chương trình mô phỏng\n\n### 1. File `index.html` mô phỏng các thuật toán\n\n1. Thuật toán Euclid tính ước số chung: gcd(`a`, `b`)\n2. Thuật toán Euclid mở rộng tính nghịch đảo `b` theo modulo `a`: egcd(`a`, `b`)\n3. Thuật toán bình phương và nhân\n4. Tìm phần tử nguyên thủy (sinh)\n\nDemo: [index.html](index.html)\n\n![Chương trình mô phỏng][1-thuat-toan-cai-dat]\n\n### 2. File `rsa.html` mô phỏng thuật toán RSA và tạo chữ ký sô\n\n1. Thuật toán RSA với đầu vào là: `p`, `q`, `e`\n2. ~~Sinh ngẫu nhiên phần tử `e`~~\n3. Ký văn bản bằng lược đồ RSA\n\nDemo: [rsa.html](rsa.html)\n\n![Mô phỏng thuật toán RSA][2-mo-phong-rsa]\n\n### 3. File `elgamal.html` mô phỏng thuật toán Elgamal và tạo chữ ký số\n\n1. Thuật toán Elgamal nhận đầu vào là: `p`, `a`, `k`, `x`\n2. Sinh phần tử nguyên thủy tương ứng số nguyên tố `p` \n3. Ký văn bản bằng lược đồ Elgamal\n\nDemo: [elgamal.html](elgamal.html)\n\n### TODO List\n- ~~Tạo chữ ký số bằng lược đồ Elgamal~~\n- ~~Mô phỏng thuật toán Elgamal và tạo chữ ký số~~\n\n\n[1-thuat-toan-cai-dat]: https://github.com/vunb/anhttt/raw/master/images/thuat-toan-cai-dat.PNG\n[2-mo-phong-rsa]: https://github.com/vunb/anhttt/raw/master/images/mo-phong-rsa.PNG","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvunb%2Fanhttt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvunb%2Fanhttt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvunb%2Fanhttt/lists"}