{"id":22433619,"url":"https://github.com/gavinning/node-crypto","last_synced_at":"2025-03-27T07:45:43.462Z","repository":{"id":143897531,"uuid":"65798987","full_name":"gavinning/node-crypto","owner":"gavinning","description":"加密","archived":false,"fork":false,"pushed_at":"2016-08-16T07:46:30.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T22:45:43.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gavinning.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":"2016-08-16T07:46:02.000Z","updated_at":"2016-08-16T07:46:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f8c2390-239a-4ede-b531-dfd98e52d982","html_url":"https://github.com/gavinning/node-crypto","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/gavinning%2Fnode-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fnode-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fnode-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fnode-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/node-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806390,"owners_count":20675296,"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":[],"created_at":"2024-12-05T22:15:28.123Z","updated_at":"2025-03-27T07:45:43.457Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Crypto\n---\n以``nodejs``官方``crypto``加密模块为核心\n\n### Install\n```sh\nnpm i node-crypto --save\n```\n\n### Usage\n```js\nvar Crypto = require('node-crypto')\nvar cp = new Crypto('you secret code')\n\nvar base64 = cp.base('123456')\nconsole.log(base64)\n// =\u003e \n// 2VyW6u0OSBYr5VIYRhJ5FXLOtec=\n\nvar hex = cp.hex('123456')\nconsole.log(hex)\n// =\u003e\n// d95c96eaed0e48162be552184612791572ceb5e7\n\nconsole.log( cp.baseToHex('2VyW6u0OSBYr5VIYRhJ5FXLOtec=') )\n// =\u003e\n// d95c96eaed0e48162be552184612791572ceb5e7\n\nconsole.log( cp.hexToBase('d95c96eaed0e48162be552184612791572ceb5e7') )\n// =\u003e\n// 2VyW6u0OSBYr5VIYRhJ5FXLOtec=\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fnode-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fnode-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fnode-crypto/lists"}