{"id":19847826,"url":"https://github.com/mascrypt0/encryption-kit","last_synced_at":"2026-02-14T14:01:30.935Z","repository":{"id":229145621,"uuid":"775908950","full_name":"mascrypt0/encryption-kit","owner":"mascrypt0","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-22T09:51:19.000Z","size":370,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T23:43:25.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mascrypt0.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":"2024-03-22T09:37:14.000Z","updated_at":"2024-03-22T09:37:15.000Z","dependencies_parsed_at":"2024-11-12T13:15:23.919Z","dependency_job_id":null,"html_url":"https://github.com/mascrypt0/encryption-kit","commit_stats":null,"previous_names":["mascrypt0/encryption-kit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mascrypt0/encryption-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencryption-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencryption-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencryption-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencryption-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mascrypt0","download_url":"https://codeload.github.com/mascrypt0/encryption-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascrypt0%2Fencryption-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29446294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-12T13:15:19.559Z","updated_at":"2026-02-14T14:01:28.899Z","avatar_url":"https://github.com/mascrypt0.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# encrypt-kit Usage\n \n\n## npm \n\nnpm install encryption-kit\n\n### JsSm4Client Encryption and Decryption tool\n\n\u003e Encapsulates JsSm4,\n\n\nConfiguration parameter\nkey : secret key\n\n* Encryption method\n* @param plaintext\n* encryptData( plaintext:string): string\n\n\n* Decryption method\n* @param ciphertext\n* decryptData(ciphertext:string): string\n\n```javascript\n// introduction\n\nimport {JsSm4Client} from 'encryption-kit'\n\nlet jsSm4Client = new JsSm4Client('youKey')\n\nlet a = \"1232123\"\n\nconsole.log(jsSm4Client.decryptData(jsSm4Client.encryptData(a))); // 1232123\n\n```\n\n### 2 RsaClient rsa encryption, decryption\n\n\u003e Encapsulates RsaClient,\n\n\nConfiguration parameter\nkey : secret key\n\n* Encryption method\n* @param plaintext\n* encryptData( plaintext:string): string\n\n\n* Decryption method\n* @param ciphertext\n* decryptData(ciphertext:string): string\n\n```javascript\n// Example\n\nimport {RsaClient} from 'encryption-kit'\n\nconst publickKey = 'youPublickKey'\nconst privateKey = 'youPrivateKey'\n\nlet rsaClient = new RsaClient(key)\n\nlet a = \"1232123\"\n\nconsole.log(rsaClient.decryptData(rsaClient.encryptData(a))); // 1232123\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascrypt0%2Fencryption-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmascrypt0%2Fencryption-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascrypt0%2Fencryption-kit/lists"}