{"id":35817079,"url":"https://github.com/eminmuhammadi/hidemydata","last_synced_at":"2026-01-07T17:00:10.284Z","repository":{"id":56977364,"uuid":"212893012","full_name":"eminmuhammadi/HideMyData","owner":"eminmuhammadi","description":"Managing a couple of algorithms to decrypt or encrypt text [PHP]","archived":false,"fork":false,"pushed_at":"2020-04-24T13:06:24.000Z","size":274,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T09:38:50.809Z","etag":null,"topics":["algorithms","assymetric-security","cryptography","decryption","encryption","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eminmuhammadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-04T19:58:18.000Z","updated_at":"2020-04-24T13:06:27.000Z","dependencies_parsed_at":"2022-08-21T08:10:53.358Z","dependency_job_id":null,"html_url":"https://github.com/eminmuhammadi/HideMyData","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/eminmuhammadi/HideMyData","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminmuhammadi%2FHideMyData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminmuhammadi%2FHideMyData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminmuhammadi%2FHideMyData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminmuhammadi%2FHideMyData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eminmuhammadi","download_url":"https://codeload.github.com/eminmuhammadi/HideMyData/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminmuhammadi%2FHideMyData/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28236366,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["algorithms","assymetric-security","cryptography","decryption","encryption","php"],"created_at":"2026-01-07T17:00:07.438Z","updated_at":"2026-01-07T17:00:10.267Z","avatar_url":"https://github.com/eminmuhammadi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HideMyData (v2.0.1) [![Build Status](https://travis-ci.org/eminmuhammadi/HideMyData.svg?branch=master)](https://travis-ci.org/eminmuhammadi/HideMyData)\n\nManaging a couple of algorithms to decrypt or encrypt text, powered by PHP.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n## Installing\n\nYou can install using Composer\n\n```bash\ncomposer require eminmuhammadi/himemydata:dev-master\n```\nor\n```bash\ngit clone https://github.com/eminmuhammadi/HideMyData.git\n```\n\n## Codings\n\n```php\ninclude_once 'vendor/autoload.php';\n```\nLibrary class called as `eminmuhammadi\\HideMyData\\HideMyData` and requires main 3 options to use. `Secret Key` and `Public Key`  must be selected by individuals who need to use asymmetric encryption. There are a couple of `algorithms` divided into 2 part.\n\n## Basic Use\n\n### Encryption :\n\n```php\n\u003c?php\n\n    require_once '../vendor/autoload.php';\n\n    $text = 'HideMyData';\n    $algo = 'aes256';\n\n    try {\n        $hider = (new eminmuhammadi\\HideMyData\\HideMyData('public-key', 'secret-key', $algo));\n\n        $data = $hider-\u003eencrypt($text);\n        print($data);\n    }\n    catch (Exception $e) {\n        print($e);\n    }\n```\nResult:\n```text\nKzdOWXBBWDNWSElWWm1VUkprenBFZz09\n```\n\n### Decryption :\n\n```php\n\u003c?php\n\n    require_once '../vendor/autoload.php';\n\n    $text = 'KzdOWXBBWDNWSElWWm1VUkprenBFZz09';\n    $algo = 'aes256';\n\n    try {\n        $hider = (new eminmuhammadi\\HideMyData\\HideMyData('public-key', 'secret-key', $algo));\n\n        $data = $hider-\u003edecrypt($text);\n        print($data);\n    }\n    catch (Exception $e) {\n        print($e);\n    }\n```\n\nResult:\n```text\nHideMyData\n```\n\n### Time limiting for encryption|decryption\n```php\n\u003c?php\n\n    require_once '../vendor/autoload.php';\n\n    $text = 'HideMyData';\n    $algo = 'aes256';\n\n    try {\n        $hider = (new eminmuhammadi\\HideMyData\\HideMyData('public-key', 'secret-key', $algo));\n\n        /**\n         * @example $date - {5 second} , { 5 minute } , { 5 day } , { 5 month } , { 5 year }\n         */\n        $data = $hider-\u003eencrypt($text,'1 minute');\n        print($data);\n    }\n    catch (Exception $e) {\n        print($e);\n    }\n```\n\nResult : \n```text\nQTRmOGpVMml6MDNVVG5IWERDblgzcFpzSE5oRHNYalVuT1NBV2w1UXB2clEyY2hRalVZbTVkL2ZJUjQ4MjNCT0RVUUZDb0NodGFCOTU2czVtUzNBMVU3eFhRRlM4cnhINmliWmRBY0I0eVo2dXdiaHY1bWxBWC85Y1piWUV4Qys=\n```\n\n```php\n\u003c?php\n\n    require_once '../vendor/autoload.php';\n\n    $text = 'QTRmOGpVMml6MDNVVG5IWERDblgzcFpzSE5oRHNYalVuT1NBV2w1UXB2clEyY2hRalVZbTVkL2ZJUjQ4MjNCT0RVUUZDb0NodGFCOTU2czVtUzNBMVU3eFhRRlM4cnhINmliWmRBY0I0eVo2dXdiaHY1bWxBWC85Y1piWUV4Qys=';\n    $algo = 'aes256';\n\n    try {\n        $hider = (new eminmuhammadi\\HideMyData\\HideMyData('public-key', 'secret-key', $algo));\n\n        /**\n         * @example $date - {5 second} , { 5 minute } , { 5 day } , { 5 month } , { 5 year }\n         */\n        $data = $hider-\u003edecrypt($text,'1 minute');\n        print($data);\n    }\n\n    /**\n     *   Need to say error because of old data\n     */\n    catch (Exception $e) {\n        print($e);\n    }\n```\n\n```text\nException: eminmuhammadi\\HideMyData\\decrypt:: - time limited for this keys please update time or generate new one. in [root-repo]\\src\\hidemydata.php:122 Stack trace: #0 [root-repo]\\service\\date-decrypt.example.php(14): eminmuhammadi\\HideMyData\\HideMyData-\u003edecrypt('QTRmOGpVMml6MDN...', '1 minute') #1 {main}\n```\n**NOTE !!!** You need to update text because of old time limitation. When time is fresh then it will be like\n\n```text\nHideMyData\n```\n\n## Ciphers List\n\n### [examples/ciphers.example.php](examples/ciphers.example.php)\n```json\n[\n    {\n        \"0\": \"aes-128-cbc\",\n        \"1\": \"aes-128-cbc-hmac-sha1\",\n        \"2\": \"aes-128-cbc-hmac-sha256\",\n        \"3\": \"aes-128-ccm\",\n        \"4\": \"aes-128-cfb\",\n        \"5\": \"aes-128-cfb1\",\n        \"6\": \"aes-128-cfb8\",\n        \"7\": \"aes-128-ctr\",\n        \"9\": \"aes-128-gcm\",\n        \"10\": \"aes-128-ocb\",\n        \"11\": \"aes-128-ofb\",\n        \"12\": \"aes-128-xts\",\n        \"13\": \"aes-192-cbc\",\n        \"14\": \"aes-192-ccm\",\n        \"15\": \"aes-192-cfb\",\n        \"16\": \"aes-192-cfb1\",\n        \"17\": \"aes-192-cfb8\",\n        \"18\": \"aes-192-ctr\",\n        \"20\": \"aes-192-gcm\",\n        \"21\": \"aes-192-ocb\",\n        \"22\": \"aes-192-ofb\",\n        \"23\": \"aes-256-cbc\",\n        \"24\": \"aes-256-cbc-hmac-sha1\",\n        \"25\": \"aes-256-cbc-hmac-sha256\",\n        \"26\": \"aes-256-ccm\",\n        \"27\": \"aes-256-cfb\",\n        \"28\": \"aes-256-cfb1\",\n        \"29\": \"aes-256-cfb8\",\n        \"30\": \"aes-256-ctr\",\n        \"32\": \"aes-256-gcm\",\n        \"33\": \"aes-256-ocb\",\n        \"34\": \"aes-256-ofb\",\n        \"35\": \"aes-256-xts\",\n        \"36\": \"aria-128-cbc\",\n        \"37\": \"aria-128-ccm\",\n        \"38\": \"aria-128-cfb\",\n        \"39\": \"aria-128-cfb1\",\n        \"40\": \"aria-128-cfb8\",\n        \"41\": \"aria-128-ctr\",\n        \"43\": \"aria-128-gcm\",\n        \"44\": \"aria-128-ofb\",\n        \"45\": \"aria-192-cbc\",\n        \"46\": \"aria-192-ccm\",\n        \"47\": \"aria-192-cfb\",\n        \"48\": \"aria-192-cfb1\",\n        \"49\": \"aria-192-cfb8\",\n        \"50\": \"aria-192-ctr\",\n        \"52\": \"aria-192-gcm\",\n        \"53\": \"aria-192-ofb\",\n        \"54\": \"aria-256-cbc\",\n        \"55\": \"aria-256-ccm\",\n        \"56\": \"aria-256-cfb\",\n        \"57\": \"aria-256-cfb1\",\n        \"58\": \"aria-256-cfb8\",\n        \"59\": \"aria-256-ctr\",\n        \"61\": \"aria-256-gcm\",\n        \"62\": \"aria-256-ofb\",\n        \"63\": \"bf-cbc\",\n        \"64\": \"bf-cfb\",\n        \"66\": \"bf-ofb\",\n        \"67\": \"camellia-128-cbc\",\n        \"68\": \"camellia-128-cfb\",\n        \"69\": \"camellia-128-cfb1\",\n        \"70\": \"camellia-128-cfb8\",\n        \"71\": \"camellia-128-ctr\",\n        \"73\": \"camellia-128-ofb\",\n        \"74\": \"camellia-192-cbc\",\n        \"75\": \"camellia-192-cfb\",\n        \"76\": \"camellia-192-cfb1\",\n        \"77\": \"camellia-192-cfb8\",\n        \"78\": \"camellia-192-ctr\",\n        \"80\": \"camellia-192-ofb\",\n        \"81\": \"camellia-256-cbc\",\n        \"82\": \"camellia-256-cfb\",\n        \"83\": \"camellia-256-cfb1\",\n        \"84\": \"camellia-256-cfb8\",\n        \"85\": \"camellia-256-ctr\",\n        \"87\": \"camellia-256-ofb\",\n        \"88\": \"cast5-cbc\",\n        \"89\": \"cast5-cfb\",\n        \"91\": \"cast5-ofb\",\n        \"92\": \"chacha20\",\n        \"93\": \"chacha20-poly1305\",\n        \"111\": \"id-aes128-CCM\",\n        \"112\": \"id-aes128-GCM\",\n        \"113\": \"id-aes128-wrap\",\n        \"114\": \"id-aes128-wrap-pad\",\n        \"115\": \"id-aes192-CCM\",\n        \"116\": \"id-aes192-GCM\",\n        \"117\": \"id-aes192-wrap\",\n        \"118\": \"id-aes192-wrap-pad\",\n        \"119\": \"id-aes256-CCM\",\n        \"120\": \"id-aes256-GCM\",\n        \"121\": \"id-aes256-wrap\",\n        \"122\": \"id-aes256-wrap-pad\",\n        \"124\": \"idea-cbc\",\n        \"125\": \"idea-cfb\",\n        \"127\": \"idea-ofb\",\n        \"137\": \"seed-cbc\",\n        \"138\": \"seed-cfb\",\n        \"140\": \"seed-ofb\",\n        \"141\": \"sm4-cbc\",\n        \"142\": \"sm4-cfb\",\n        \"143\": \"sm4-ctr\",\n        \"145\": \"sm4-ofb\"\n    },\n    {\n        \"36\": \"aes128\",\n        \"37\": \"aes128-wrap\",\n        \"38\": \"aes192\",\n        \"39\": \"aes192-wrap\",\n        \"40\": \"aes256\",\n        \"41\": \"aes256-wrap\",\n        \"69\": \"aria128\",\n        \"70\": \"aria192\",\n        \"71\": \"aria256\",\n        \"72\": \"bf\",\n        \"77\": \"blowfish\",\n        \"99\": \"camellia128\",\n        \"100\": \"camellia192\",\n        \"101\": \"camellia256\",\n        \"102\": \"cast\",\n        \"103\": \"cast-cbc\",\n        \"146\": \"idea\",\n        \"164\": \"seed\",\n        \"169\": \"sm4\"\n    }\n]\n```\n## Test\n\n```bash\ncomposer run-scripts test\n```\n\n## Changelogs\n* v2.0.1\n  * Composer package published\n\n* v2.0.0\n  * We're not responsible for archived demo currently\n  * We changed repository name into HideMyData\n  * We removed support for [eminmuhammadi/create-hidemyass](https://github.com/eminmuhammadi/create-hidemyass)\n\n* v1.3.1\n  * Added Array mode.\n  * Some bugs fixed.\n  \n\n* v1.3.0\n  * Added Test Cases [test/](test/).\n  * Some bugs fixed.\n  \n* v1.2.0\n\n  * Removed PWA. Created new repository at [eminmuhammadi/create-hidemyass](https://github.com/eminmuhammadi/create-hidemyass).\n  * Added key limitings. Now you can use a time limit for validation of keys.\n  * Added new examples at [examples/](examples/)\n  * README changed.\n\n* v1.1.1\n  * Docblocks generated.  \n  * Created new directory for tests\n  \n \n## Authors\n\n* **Emin Muhammadi** - *Initial work* - [eminmuhammadi](https://github.com/eminmuhammadi)\n\nSee also the list of [contributors](https://github.com/eminmuhammadi/HideMyAss/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminmuhammadi%2Fhidemydata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feminmuhammadi%2Fhidemydata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminmuhammadi%2Fhidemydata/lists"}