Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bukinoshita/caesar-encrypt
:closed_lock_with_key: One of the simplest forms of encryption
https://github.com/bukinoshita/caesar-encrypt
caesar-cipher cipher crypto cryptography nodejs
Last synced: 20 days ago
JSON representation
:closed_lock_with_key: One of the simplest forms of encryption
- Host: GitHub
- URL: https://github.com/bukinoshita/caesar-encrypt
- Owner: bukinoshita
- License: mit
- Created: 2017-02-23T15:07:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T04:38:22.000Z (over 5 years ago)
- Last Synced: 2024-10-10T16:07:30.463Z (about 1 month ago)
- Topics: caesar-cipher, cipher, crypto, cryptography, nodejs
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# caesar-encrypt [![Build Status](https://travis-ci.org/bukinoshita/caesar.svg?branch=master)](https://travis-ci.org/bukinoshita/caesar)
> One of the simplest forms of encryption## Install
```
$ npm install --save caesar-encrypt
```## Usage
```js
import { encrypt, decrypt } from 'caesar-encrypt'encrypt('not-my-password', 1)
// => opu.nz.qbttxpsedecrypt('opu.nz.qbttxpse', 1)
// => not-my-password
```## API
### caesarEncrypt### .encrypt(input, shift)
#### input
Type: `string`
Required#### shift
Type: `number`
Requiredshift should be a number between 1-26
### .decrypt(input, shift)
#### input
Type: `string`
Required#### shift
Type: `number`
Requiredshift should be a number between 1-26
## Understand Caesar Cipher
> The Caesar cipher, also known as a shift cipher, is one of the simplest forms of encryption. It is a substitution cipher where each letter in the original message (called the plaintext) is replaced with a letter corresponding to a certain number of letters up or down in the alphabet. [Learn more](https://learncryptography.com/classical-encryption/caesar-cipher)## Related
- [save-me](https://github.com/bukinoshita/save-me) — :lock: Save anything## License
MIT © [Bu Kinoshita](https://bukinoshita.io)