Skip to content

Commit

Permalink
docs: fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlreadyBored committed Jan 30, 2020
1 parent a35cbea commit a29ebd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Write your code in `src/what-season.js`.

### **Vigenere cipher**

Cryptography is awesome! Let's try to organize the production of encryption machines. Cryptography is awesome! Let's try to organize the production of encryption machines. Our machines will use one of the encryption methods that are easy to understand, but also not amenable to simple cryptanalysis - the [**Vigenere cipher**](https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher).
Cryptography is awesome! Let's try to organize the production of encryption machines. Our machines will use one of the encryption methods that are easy to understand, but also not amenable to simple cryptanalysis - the [**Vigenere cipher**](https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher).

Our machine will have 2 modifications: **direct** and **reverse** (the type of machine is determined at the moment of creation). The **direct** machine encodes and decodes the string that was transmitted to it, and the **reverse** machine, when encoding and decoding, returns an **inverted** string.

Your task is to implement `class` `VigenereCipheringMachine`. Constructor of this `class` accepts `true` (**or nothing**) to create **direct** machine and `false` to create **reverse** machine.
Your task is to implement `class` `VigenereCipheringMachine`. `constructor` of this `class` accepts `true` (**or nothing**) to create **direct** machine and `false` to create **reverse** machine.
Each instance of `VigenereCipheringMachine` must have 2 methods: `encrypt` and `decrypt`.

`encrypt` method accept 2 parameters: `message` (`string` to encode) and `key` (`string`-keyword).
Expand All @@ -106,6 +106,8 @@ Each instance of `VigenereCipheringMachine` must have 2 methods: `encrypt` and `

These parameters for both functions are **mandatory**. If at least one of them has not been transmitted, an `Error` must be thrown.

---

#### Prerequisites
1. Install [Node.js](https://nodejs.org/en/download/)
2. Fork this repository: https://github.com/rolling-scopes-school/basic-js/
Expand Down

0 comments on commit a29ebd0

Please sign in to comment.