{"id":28376158,"url":"https://github.com/attla/cripta","last_synced_at":"2025-06-26T10:31:18.673Z","repository":{"id":294765194,"uuid":"985585715","full_name":"attla/cripta","owner":"attla","description":"🧛 A layer of encryption a little too judicious","archived":false,"fork":false,"pushed_at":"2025-05-27T18:44:03.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T00:05:37.570Z","etag":null,"topics":["aws","aws-lambda","decription","encription","encryption","hash","llrt","pincryp","serverless"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/attla.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,"zenodo":null}},"created_at":"2025-05-18T04:50:58.000Z","updated_at":"2025-05-27T23:32:28.000Z","dependencies_parsed_at":"2025-05-22T00:46:45.256Z","dependency_job_id":null,"html_url":"https://github.com/attla/cripta","commit_stats":null,"previous_names":["attla/cripta"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/attla/cripta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attla%2Fcripta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attla%2Fcripta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attla%2Fcripta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attla%2Fcripta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/attla","download_url":"https://codeload.github.com/attla/cripta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attla%2Fcripta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262047877,"owners_count":23250433,"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":["aws","aws-lambda","decription","encription","encryption","hash","llrt","pincryp","serverless"],"created_at":"2025-05-30T00:05:40.158Z","updated_at":"2025-06-26T10:31:18.668Z","avatar_url":"https://github.com/attla.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"left\"\u003eCriptλ\u003cbr/\u003e\u003ca href=\"https://pr.new/attla/cripta\"\u003e\u003cimg align=\"right\" src=\"https://developer.stackblitz.com/img/start_pr_dark_small.svg\" alt=\"Start new PR in StackBlitz Codeflow\"\u003e\u003c/a\u003e\u003ca href=\"https://npmjs.com/package/cripta\"\u003e\u003cimg align=\"right\" src=\"https://img.shields.io/npm/v/cripta.svg\" alt=\"npm package\"\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003cbr/\u003e\n\n- [Installation](#install)\n- [Usage](#usage)\n- [License](#license)\n\n## Install\n\n```bash\n# bun\nbun i cripta\n\n# pnpm\npnpm i cripta\n\n# npm\nnpm i cripta\n\n# yarn\nyarn i cripta\n```\n\n## Usage\n\n```ts\nimport { cripta } from 'cripta'\n\nconst instance = cripta({ key: 'your-secret-key' })\n\nconst encoded = instance.encode('hic sunt dracones')\nconsole.log('Encoded: ', encoded)\nconsole.log('Decoded: ', instance.decode(encoded))\n```\n\nThe Cripta can encrypt all primitive types: `array`, `object`, `string`, `number`, `bigint`, `boolean`, `Symbol`, `undefined` and `null`.\n\nSee an example of object encryption:\n\n```ts\n// encoding\nconst encoded = instance.encode({\n  name: 'John Doe',\n  email: 'john@example.com'\n})\n\nconsole.log('Encoded object: ', encoded)\n\n// retrieve the object from encoded value\nconst decoded = instance.decode(encoded)\nconsole.log('Decoded object: ', decoded)\n```\n\n## License\n\nThis package is licensed under the [MIT license](https://github.com/attla/cripta/blob/main/LICENSE) © [Zunq](https://zunq.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattla%2Fcripta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fattla%2Fcripta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattla%2Fcripta/lists"}