{"id":33970215,"url":"https://github.com/affinity4/cipher","last_synced_at":"2026-04-04T13:01:56.043Z","repository":{"id":56941628,"uuid":"128573253","full_name":"affinity4/cipher","owner":"affinity4","description":"Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!","archived":false,"fork":false,"pushed_at":"2022-05-25T19:32:56.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T12:54:06.535Z","etag":null,"topics":[],"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/affinity4.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":"2018-04-07T22:18:07.000Z","updated_at":"2022-05-25T19:29:50.000Z","dependencies_parsed_at":"2022-08-21T02:10:18.181Z","dependency_job_id":null,"html_url":"https://github.com/affinity4/cipher","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/affinity4/cipher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affinity4%2Fcipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affinity4%2Fcipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affinity4%2Fcipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affinity4%2Fcipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/affinity4","download_url":"https://codeload.github.com/affinity4/cipher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affinity4%2Fcipher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":[],"created_at":"2025-12-13T00:15:29.928Z","updated_at":"2026-04-04T13:01:56.036Z","avatar_url":"https://github.com/affinity4.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Affinity4 Cipher\n\nEncrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also.\n\n__DO NOT USE FOR PASSWORD AUTHENTICATION!__\n\n## Installation\n\n### Composer\n\n```bash\ncomposer require affinity4/cipher\n```\n\n## Usage\n\n```php\n// Used by both excrypt and decrypt methods, so should be available globally\n// Perhaps as an environment variable\n$key = 'b1f1e6225cb2b6d0230b16125e45ca63';\n$str = 'my secret';\n\n$encrypted = \\Affinity4\\Cipher\\Cipher::encrypt($str, $key); // piqwpeiqep12801aqwie0248quqjowq==\n$decrypted = \\Affinity4\\Cipher\\Cipher::decrypt($encrypted, $key); // my secret\n```\n\n## Licence\n\nMIT 2018 Luke Watts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffinity4%2Fcipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faffinity4%2Fcipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffinity4%2Fcipher/lists"}