{"id":19218775,"url":"https://github.com/fadilxcoder/cryoto-js","last_synced_at":"2025-02-23T09:14:54.200Z","repository":{"id":86245248,"uuid":"406438227","full_name":"fadilxcoder/cryoto-js","owner":"fadilxcoder","description":"Crypto - Client of hfx-api - Reverse proxy - [https://github.com/fadilxcoder/reverse-proxy.git] [https://github.com/fadilxcoder/hfx-api.git]","archived":false,"fork":false,"pushed_at":"2022-09-04T20:21:40.000Z","size":318,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T19:23:47.347Z","etag":null,"topics":["client","mobile-app","rest-api","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/fadilxcoder.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":"2021-09-14T16:11:52.000Z","updated_at":"2022-07-06T19:23:39.000Z","dependencies_parsed_at":"2023-03-08T10:00:29.874Z","dependency_job_id":null,"html_url":"https://github.com/fadilxcoder/cryoto-js","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/fadilxcoder%2Fcryoto-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fcryoto-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fcryoto-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fcryoto-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadilxcoder","download_url":"https://codeload.github.com/fadilxcoder/cryoto-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292395,"owners_count":19778311,"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":["client","mobile-app","rest-api","security"],"created_at":"2024-11-09T14:28:02.748Z","updated_at":"2025-02-23T09:14:54.131Z","avatar_url":"https://github.com/fadilxcoder.png","language":"JavaScript","readme":"# Notes\n\n- - **Static** Crypto.js --\u003e **PHP** Reverse proxy [https://github.com/fadilxcoder/reverse-proxy.git] --\u003e **PHP** HFX Api server [https://github.com/fadilxcoder/hfx-api.git]\n\n- Decrypt string\n\n```\n \u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var DataEncrypt = \"icAESDk4FQYhhubVwCPExcnax7VMUxfHJlbrbGKg3cXBRg2ZqHRf8uXk9hOnSFVlcsuerf1+62RxmZVrXS4n1UqBiv8ruZnj00BMWnOa5u0=\";\n\n    var DataKey = CryptoJS.enc.Utf8.parse(\"37305569879051012722482875850017\");\n    var DataVector = CryptoJS.enc.Utf8.parse(\"8975106574091384\");\n\n    var decrypted = CryptoJS.AES.decrypt(DataEncrypt, DataKey, { iv: DataVector });        \n    var decrypted = CryptoJS.enc.Utf8.stringify(decrypted);\n\n    console.log(DataEncrypt);\n    console.log(decrypted);\n\u003c/script\u003e\n```\n\nUsing node.js\n\n- Install https://www.npmjs.com/package/crypto-js\n- https://www.npmjs.com/package/http-server (static HTTP server)\n- `npm i crypto-js`\n- https://www.npmjs.com/package/http-server\n- Generate SSL by `openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem`, cretae a `cert.pem`\n- Lanch by `http-server` OR for SSL `http-server -S -C cert.pem`\n- Set `webpack` in dev mode by editing `webpack.config.js` section `mode: \"development\"`\n- Use configs in `.env` directly in webpack\n- https://www.npmjs.com/package/dotenv-webpack (dotenv-webpack)\n- Install `npm i dotenv-webpack`\n- Call API with bearer\n- https://www.npmjs.com/package/axios\n- Install `npm i axios`\n- https://github.com/axios/axios (Github repo)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fcryoto-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadilxcoder%2Fcryoto-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fcryoto-js/lists"}