{"id":15662437,"url":"https://github.com/fabioricali/cryptor","last_synced_at":"2025-05-05T23:53:07.589Z","repository":{"id":57710683,"uuid":"91986139","full_name":"fabioricali/Cryptor","owner":"fabioricali","description":"Encrypt and decrypt string using a key","archived":false,"fork":false,"pushed_at":"2020-09-04T16:41:33.000Z","size":36,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T12:14:11.335Z","etag":null,"topics":["ciphers","crypto","decryption","encryption","javascript","nodejs"],"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/fabioricali.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-21T20:40:56.000Z","updated_at":"2024-05-06T00:42:25.000Z","dependencies_parsed_at":"2022-08-24T01:40:54.892Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/Cryptor","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FCryptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FCryptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FCryptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FCryptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/Cryptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596391,"owners_count":21773844,"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":["ciphers","crypto","decryption","encryption","javascript","nodejs"],"created_at":"2024-10-03T13:32:36.761Z","updated_at":"2025-05-05T23:53:07.573Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eCryptorjs\u003c/h1\u003e\nSimple library for encryption and decryption of string, number and object using a key\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ca href=\"https://travis-ci.org/fabioricali/Cryptor\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/Cryptor.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/fabioricali/Cryptor?branch=master\" target=\"_blank\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/fabioricali/Cryptor/badge.svg?branch=master\" title=\"Coverage Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/team-terrons-orange.svg\" title=\"Team Terrons\"/\u003e\n\u003c/div\u003e\n\n## Installation\n\n```javascript\nnpm install cryptorjs --save\n```\n\n## Example\n### Basic\n```javascript\nvar cryptorjs = require('cryptorjs');\n\nvar myCryptor = new cryptorjs('yourSecretKey');\n\nvar encoded = myCryptor.encode('myExampleString');\n// =\u003e '37d8e07a3dddc2971f3e53b1021f51'\n\nvar decoded = myCryptor.decode('37d8e07a3dddc2971f3e53b1021f51');\n// =\u003e 'myExampleString'\n```\n### Object encryption\n```javascript\nvar cryptorjs = require('cryptorjs');\n\nvar myCryptor = new cryptorjs('yourSecretKey');\n\nvar encoded = myCryptor.encode({ a: 1, b: 2 });\n// =\u003e '2183c42066819ed9184f1df116'\n\nvar decoded = myCryptor.decode('2183c42066819ed9184f1df116');\n// =\u003e { a: 1, b: 2 }\n```\n\n### With a cipher\nFor example using \"camellia-256-cfb1\" cipher\n```javascript\nvar cryptorjs = require('cryptorjs');\n\nvar myCryptor = new cryptorjs('yourSecretKey', 'camellia-256-cfb1');\n\nvar encoded = myCryptor.encode('myExampleString');\n// =\u003e 'ac3277ba5c3f433d6b7ea70979fe55'\n\nvar decoded = myCryptor.decode('ac3277ba5c3f433d6b7ea70979fe55');\n// =\u003e 'myExampleString'\n```\n\n### Ciphers\nYou can get the list with a static method\n```javascript\nvar cryptorjs = require('cryptorjs');\n\ncryptorjs.getCiphers();\n\n/*=\u003e [ 'aes-128-cbc',\n        'aes-128-cbc-hmac-sha1',\n        'aes-128-cbc-hmac-sha256',\n        'aes-128-ccm',\n        'aes-128-cfb',\n        'aes-128-cfb1',\n        'aes-128-cfb8',...]\n        */\n```\n\n### Hash helpers\nCreate an hash using available hashes in your platform\n```javascript\nvar cryptorjs = require('cryptorjs');\n\n// Check if exists MD5 hash\nconsole.log(cryptorjs.hasHash('md5')); //=\u003e true\n\ncryptorjs.hash('ciao', 'md5');\n\n/*=\u003e '6e6bc4e49dd477ebc98ef4046c067b5f'*/\n\ncryptorjs.hash('ciao', 'sha1');\n\n/*=\u003e '1e4e888ac66f8dd41e00c5a7ac36a32a9950d271'*/\n```\n\n### Supported ciphers (since 3.0.0)\n- aes-256-cbc\n- aes-256-cbc-hmac-sha1\n- aes-256-cbc-hmac-sha256\n- aes-256-cfb\n- aes-256-cfb1\n- aes-256-cfb8\n- aes-256-ctr\n- aes-256-ofb\n- aes256\n- camellia-256-cbc\n- camellia-256-cfb\n- camellia-256-cfb1\n- camellia-256-cfb8\n- camellia-256-ofb\n- camellia256\n\n## License\nCryptorjs is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n## Author\n[Fabio Ricali](http://rica.li)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fcryptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fcryptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fcryptor/lists"}