LethargicLeprechaun
4be7a85fd3
Added an XOR cipher ( #135 )
...
* Added an XOR cipher
* Rename xor_cipher.js to XORCipher.js
* Update XORCipher.js
Co-authored-by: vinayak <itssvinayak@gmail.com >
2020-06-23 10:17:44 +05:30
Samarth Jain
670edfc9aa
Renaming files according to naming convention ( #158 )
2020-05-08 17:54:19 +05:30
Juliano Nunes
2e0bd65b0c
Fixing non compliant files (Ciphers, Conversions and Data Structures)
2020-05-03 21:26:52 -03:00
cclauss
856dc2f63c
npx standard --fix
2020-05-03 09:05:12 +02:00
PatOnTheBack
f37cac8508
Fixed Whitespace, Operators, and Quotes to Comply with JSLint
...
I modified the whitespace in the files and changed single quotes to double quotes.
I also changed some `==` and `!=` operators to `===` and `!==` to comply with JSLint.
2019-06-27 10:41:44 -04:00
Wan Cheuk Lun
2445600a53
Update keyFinder.js
...
Add some key words to the wordbank to increase the chance of the matching.
2018-10-31 17:08:24 +08:00
Wan Cheuk Lun
75d7ef53dc
Update keyFinder.js
...
Finally, there are several changes in the function keyFinder(str) that make it works well
2018-10-31 16:54:20 +08:00
Wan Cheuk Lun
fed5d517fd
Update keyFinder.js
...
a sub-function is used to assist the keyfinder to find the key
2018-10-31 10:36:52 +08:00
Wan Cheuk Lun
a93d5cfe67
Update keyFinder.js
...
1. modified the identifiers and used the suitable identifiers for the variables
2. leave the loop when a key is match and found to increase the speed of searching in this stage of development
3. return the key number if founded, return 0 if found nothing
2018-10-31 10:10:17 +08:00
Wan Cheuk Lun
6c894a2aa5
Update keyFinder.js
...
modified used the suitable identifier for the variables
2018-10-31 09:47:06 +08:00
Wan Cheuk Lun
7a04d2ad86
Update keyFinder.js
...
Made 2 changes to optimize the match results:
1. use a loop to find the next digit of wordbank element and compare with outStr's digit
2. this part need to be optimize with the calculation of the number of occurance of word's probabilities
2018-10-30 11:20:32 +08:00
Wan Cheuk Lun
e41ad76298
Update keyFinder.js
...
some changes is made to optimize the function
2018-10-27 12:29:36 +08:00
Wan Cheuk Lun
e0fa99b2fd
Update keyFinder.js
...
optimized the indentation for the if statement in line 18
2018-10-27 11:13:15 +08:00
Wan Cheuk Lun
5a75bcae52
Rename keyFinder to keyFinder.js
2018-10-27 10:38:07 +08:00
Wan Cheuk Lun
633105633b
Create keyFinder
...
Find and retrieve the encryption key automatically
Note: This is a draft version, please help to modify, Thanks!
2018-10-25 20:15:11 +08:00
Jonathan Gómez
8281dacdfc
Create vigenereCipher.js
...
I translate this code from Java repository to Javascript language. Could be improved.
2018-09-29 22:02:08 -05:00
Christian Bender
bceb750f76
removed switch construct and put in a if-construct.
2018-03-30 16:16:12 +02:00
Ed Mendoza
2fd39c88ff
Adding the Caesar's Cipher algorithm
2017-10-15 17:07:44 -04:00