{"_id":"@dxrry/tea-encryptor","_rev":"8-913f733a6a2f53c69e3ba06e985aaea5","name":"@dxrry/tea-encryptor","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0":{"name":"@dxrry/tea-encryptor","version":"0.1.0","keywords":["tea","encryptor","decryptor"],"author":{"name":"Dxrry","email":"dxrryr@gmail.com"},"license":"MIT","_id":"@dxrry/tea-encryptor@0.1.0","maintainers":[{"name":"dxrry","email":"swjlia98@gmail.com"}],"homepage":"https://github.com/Dxrry/tea-encryptor#readme","bugs":{"url":"https://github.com/Dxrry/tea-encryptor/issues"},"dist":{"shasum":"1e99a7ce4c9487b347293f6ce076c8b8e233f26f","tarball":"https://registry.npmjs.org/@dxrry/tea-encryptor/-/tea-encryptor-0.1.0.tgz","fileCount":5,"integrity":"sha512-B6Dm6IPF0euzslfyishswJtfPUtdgG1SbbBrIFe3UqfOx/VoN1Ev5pKTYTISJ/+e7cj3BEQNwCA296wHtBRCKw==","signatures":[{"sig":"MEQCIBPtiDxc2vPa9uTWoosbK/hsbvve+8A2TCCmQnWl9FXpAiAwSfdo/weEgl4bMmALAtX4bLBbDOkHgOtIXVDba8zodA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7634},"main":"src/main.js","type":"module","gitHead":"8d1baa8ce39854ff900f5b356104a06a4a8c62e3","scripts":{"test":"node tests/test.js"},"_npmUser":{"name":"dxrry","email":"swjlia98@gmail.com"},"repository":{"url":"git+https://github.com/Dxrry/tea-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"A TeaEncryptor for encrypting and decrypting text into numbers using a custom character set and offset key.","directories":{},"_nodeVersion":"21.7.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tea-encryptor_0.1.0_1711193277576_0.2744145383744938","host":"s3://npm-registry-packages"},"deprecated":"This package has been renamed to tea-encryptor. Please use the new name."},"1.2.0":{"name":"@dxrry/tea-encryptor","version":"1.2.0","keywords":["tea","encryptor","decryptor"],"author":{"name":"Dxrry","email":"dxrryr@gmail.com"},"license":"MIT","_id":"@dxrry/tea-encryptor@1.2.0","maintainers":[{"name":"dxrry","email":"swjlia98@gmail.com"}],"homepage":"https://github.com/Dxrry/tea-encryptor#readme","bugs":{"url":"https://github.com/Dxrry/tea-encryptor/issues"},"dist":{"shasum":"e7dd66787ad14aaa7d942820ae79a5cba85d6598","tarball":"https://registry.npmjs.org/@dxrry/tea-encryptor/-/tea-encryptor-1.2.0.tgz","fileCount":5,"integrity":"sha512-ccmutDMr1CBwlCAwiMHiDTXqH1C9WtfypC/RUoMA34Br6KVYPqAdBqIECz7WDQIxmfk5e0XTgGkdGhG1Eu+wRA==","signatures":[{"sig":"MEUCIAGktnxQg5xw1zXceeFj1gC195P6bYTcbxFdPV6eeyeBAiEAlVGKKbQHou3kRvuJefq2tErv/hVn3YAa3SOpeKH630o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7674},"main":"src/main.js","type":"module","gitHead":"23f93e615191b7a357d6f25688f7aa9feaac7622","scripts":{"test":"node tests/test.js"},"_npmUser":{"name":"dxrry","email":"swjlia98@gmail.com"},"repository":{"url":"git+https://github.com/Dxrry/tea-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"A TeaEncryptor for encrypting and decrypting text into numbers using a custom character set and offset key.","directories":{},"_nodeVersion":"21.7.1","dependencies":{"nest":"^0.1.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tea-encryptor_1.2.0_1711517709958_0.6378207470937398","host":"s3://npm-registry-packages"},"deprecated":"This package has been renamed to tea-encryptor. Please use the new name."}},"time":{"created":"2024-03-23T11:27:57.477Z","modified":"2024-10-08T13:54:57.462Z","1.0.0":"2024-03-23T10:57:28.325Z","0.0.1":"2024-03-23T11:18:17.808Z","0.1.0":"2024-03-23T11:27:57.724Z","1.2.0":"2024-03-27T05:35:10.095Z"},"bugs":{"url":"https://github.com/Dxrry/tea-encryptor/issues"},"author":{"name":"Dxrry","email":"dxrryr@gmail.com"},"license":"MIT","homepage":"https://github.com/Dxrry/tea-encryptor#readme","keywords":["tea","encryptor","decryptor"],"repository":{"url":"git+https://github.com/Dxrry/tea-encryptor.git","type":"git"},"description":"A TeaEncryptor for encrypting and decrypting text into numbers using a custom character set and offset key.","maintainers":[{"name":"dxrry","email":"swjlia98@gmail.com"}],"readme":"# tea-encryptor\n\nA TeaEncryptor for encrypting and decrypting text into numbers using a custom character set and offset key.\n\n## Installation\n\nYou can install `@dxrry/tea-encryptor` via npm:\n\n```bash\nnpm install @dxrry/tea-encryptor\n```\n\n## Usage\n\n```javascript\nimport TeaEncryptor from '@dxrry/tea-encryptor';\n\n// Create a new TeaEncryptor instance\nconst encryptor = new TeaEncryptor();\n\n// Encrypt text\nconst encryptedText = encryptor.enc('Hello World');\n\n// Decrypt text\nconst decryptedText = encryptor.dec(encryptedText);\n\nconsole.log('Encrypted:', encryptedText);\nconsole.log('Decrypted:', decryptedText);\n```\n## Running Tests\nYou can run tests using npm:\n```bash\nnpm run test\n```\nThis will run the test script located at tests/test.js, which will encrypt and decrypt a sample text and output the results.\n\nExpected output:\n```text\n> @dxrry/tea-encryptor@1.0.0 test\n> node tests/test.js\n\nEncrypted Text: 168122113111113118105116182173109128124182132134134138\nDecrypted Text: Original Text 1337\n```\n\n## API\n\n### `new TeaEncryptor([defaultBaseKey], [offsetKey])`\n\nCreates a new TeaEncryptor instance.\n\n- `defaultBaseKey` (optional): The default base key for encryption.\n- `offsetKey` (optional): The offset key used for generating the final base key.\n\n### `TeaEncryptor.set(defaultBaseKey, [offsetKey])`\n\nSets the base key and flipped base key for encryption and decryption.\n\n- `defaultBaseKey`: The default base key for encryption.\n- `offsetKey` (optional): The offset key used for generating the final base key.\n\n### `TeaEncryptor.enc(textInput)`\n\nEncrypts the input text using the base key.\n\n- `textInput`: The text to be encrypted.\n\nReturns the encrypted text.\n\n### `TeaEncryptor.dec(textInput)`\n\nDecrypts the input text using the base key.\n\n- `textInput`: The text to be decrypted.\n\nReturns the decrypted text.\n\n## Btw\nThis repository is a OSS Project for [tea.xyz](https://tea.xyz/).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","readmeFilename":"README.md"}