{"id":17956842,"url":"https://github.com/morajabi/tiny-crypto-node","last_synced_at":"2026-04-27T22:32:21.562Z","repository":{"id":94756897,"uuid":"145392702","full_name":"morajabi/tiny-crypto-node","owner":"morajabi","description":"🔑 Modern Encrypt / decrypt strings (access tokens, secret names, etc) with a key for node","archived":false,"fork":false,"pushed_at":"2018-08-21T09:32:38.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T03:15:49.470Z","etag":null,"topics":["aes-256","aes-encryption","crypto","encryption","nodejs","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/morajabi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-08-20T09:00:15.000Z","updated_at":"2018-08-21T09:32:40.000Z","dependencies_parsed_at":"2023-04-25T18:48:21.432Z","dependency_job_id":null,"html_url":"https://github.com/morajabi/tiny-crypto-node","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"27c3671c2f912acb07dc212366ecc1a2b5abffe2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morajabi%2Ftiny-crypto-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morajabi%2Ftiny-crypto-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morajabi%2Ftiny-crypto-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morajabi%2Ftiny-crypto-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morajabi","download_url":"https://codeload.github.com/morajabi/tiny-crypto-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043351,"owners_count":20874087,"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":["aes-256","aes-encryption","crypto","encryption","nodejs","security"],"created_at":"2024-10-29T10:43:14.211Z","updated_at":"2026-04-27T22:32:16.520Z","avatar_url":"https://github.com/morajabi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiny Crypto\n\nSimpler (but secure) crypto utility alternative to the native crypto module shipped with Node.\nTiny Crypto is only for strings like access tokens, secure names, secure Ids, etc and not meant for passwords! (passwords shouldn't be decryptable therefore use [bcrypt](https://www.npmjs.com/package/bcrypt))\n\n## Install\n\n```bash\nyarn add tiny-crypto # or npm install tiny-crypto\n```\n\n## Use\n\nKeep in mind this is node-only! Here's how you can use it:\n\n```js\n// Import!\nimport TinyCrypto from 'tiny-crypto'\n\n// Init!\nconst tinyCrypto = new TinyCrypto('secretk3y!') // Ideally from an environment variable\n\n// Use!\nconst encryptedString = tinyCrypto.encrypt('bacon')\nconst decryptedString = tinyCrypto.decrypt(encryptedString)\n\nconsole.log(encryptedString) // 5590fd6409be2494de0226f5d7\nconsole.log(decryptedString) // bacon\n```\n\n## Flow Type\n\nI ship a flow type version too, feel free to send a PR if there's any issues. I'm here.\n\n## PRs welcome!\n\n## Idea\n\n- Base code taken from [Cryptr](https://github.com/MauriceButler/cryptr)\n\n## MIT\n\n- Modernized by [Mo Rajabifard](https://twitter.com/morajabi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorajabi%2Ftiny-crypto-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorajabi%2Ftiny-crypto-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorajabi%2Ftiny-crypto-node/lists"}