{"id":18540091,"url":"https://github.com/hamog/aes","last_synced_at":"2025-06-19T05:08:31.880Z","repository":{"id":80491904,"uuid":"116474325","full_name":"hamog/AES","owner":"hamog","description":"Encrypt and Decrypt data with AES algorithm ","archived":false,"fork":false,"pushed_at":"2019-02-25T10:26:20.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T05:08:24.422Z","etag":null,"topics":["aes","aes-encryption","decryption","encryption","initialization","iv","php","vector"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/hamog.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":"2018-01-06T10:34:31.000Z","updated_at":"2020-07-03T12:27:52.000Z","dependencies_parsed_at":"2023-07-06T11:15:36.750Z","dependency_job_id":null,"html_url":"https://github.com/hamog/AES","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamog/AES","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamog%2FAES","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamog%2FAES/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamog%2FAES/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamog%2FAES/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamog","download_url":"https://codeload.github.com/hamog/AES/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamog%2FAES/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690914,"owners_count":23047101,"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","aes-encryption","decryption","encryption","initialization","iv","php","vector"],"created_at":"2024-11-06T19:53:00.461Z","updated_at":"2025-06-19T05:08:26.862Z","avatar_url":"https://github.com/hamog.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AES\nEncrypt and Decrypt data with AES algorithm with PHP\n\n## Feature\n* Set manually iv suitable for static inialization vector (IV)\n* Set randomly iv (Recomended)\n\n## Example (Static IV)\n```PHP\nrequire \"AES.php\";\n\n$aes = new AES(\n\t'WR7rLKlVvJdEAIzHUMpt4dcEKsXPinIU2KiWzm++bhg=',\n\t'AES-256-CBC',\n\t'NJ0oI9P1fytagUfPny3qTA=='\n);\n\n$plainText = \"Please, encrypt me!\";\n\n$encrypted = $aes-\u003eencrypt($plainText);\n\necho \"Encrypted : {$encrypted}\u003cbr /\u003e\";\n\n$decrypted = $aes-\u003edecrypt($encrypted);\n\necho \"Decrypted : {$decrypted}\u003cbr /\u003e\";\n```\n\n## Example (Dynamic IV)\n```PHP\nrequire \"AES.php\";\n\n$aes = new AES(\n\t'WR7rLKlVvJdEAIzHUMpt4dcEKsXPinIU2KiWzm++bhg=',\n\t'AES-256-CBC'\n);\n\n$plainText = \"Please, encrypt me!\";\n\n$encrypted = $aes-\u003eencrypt($plainText);\n\necho \"Encrypted : {$encrypted}\u003cbr /\u003e\";\n\n$decrypted = $aes-\u003edecrypt($encrypted, true);\n\necho \"Decrypted : {$decrypted}\u003cbr /\u003e\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamog%2Faes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamog%2Faes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamog%2Faes/lists"}