Encripdrador is a tool to encrypt and decrypt passwords based on Andrade's cryptography.
The key point in this cryptography is to be easy enough to the password owner revert mentally, and hard enough to a curious that access the password don't be able to understand.
The letters are alternaly decreased and increased following the ASCII table:
The 1° letter is decreased
The 2° letter is increased
The 3° letter is decreased
The 4° letter is increased
...
For this password input: AndraDez&*2904
The password output is: ZocszEda&*1095
Note that in this encryption, 4 special cases happened:
- DSC 1
- ISC 2
- ISC 3
- DSC 3
We do the opposite flow:
The letters are alternaly increased and decreased following the ASCII table:
The 1° letter is increased
The 2° letter is decreased
The 3° letter is increased
The 4° letter is decreased
...
For this password input: ZocszEda&*1095
The password output is: AndraDez&*2904
Note that in this encryption, 4 special cases happened:
- ISC 1
- DSC 2
- DSC 3
- ISC 3
- Uppercase letters are maintained uppercase
- Undercase letters are maintained undercase
- Symbols (@, #, $, %, !, ~, etc) are kept the same
- Symbols are not consider in the count to decrease and increase
Increasing Special Cases (ISC):
- Z -> A
- z -> a
- 9 -> 0
Decreasing Special Cases (DSC):
- A -> Z
- a -> z
- 0 -> 9
# Clone the repository
$ git clone https://github.com/gabriel-andrad3/encripdrador.git
# Access the project folder
$ cd encripdrador
# Install the dependencies
$ npm install
# Run the application in development mode
$ npm run dev
# The server will start at port:3333 - access http://localhost:3333