143 Commits

Author SHA1 Message Date
ad68eed73e Update caesar_cipher.py (#702) 2019-02-19 23:26:09 +08:00
c92b02cfa3 Editing base64, Adding average file, Editing find_lcm (#673)
* avrage.py

calculate and print the avrage of number list.

* Update base64_cipher.py

encoding and decoding base64 without any module.

* Update and rename avrage.py to average.py

* update find_lcm algorithm

I made find_lcm more efficient form O(num1*num2) to O(min{num1,num2}).
2019-01-20 02:19:06 +05:30
2d70e9f747 Fix ResourceWarning: unclosed file (#681)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 16:59:23 +08:00
3dc50529ca Fix DeprecationWarning: invalid escape sequence (#679)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 16:58:47 +08:00
a834326e0e Added b16, b32, a85, abs, absMax, absMin 2018-11-03 12:08:13 -08:00
fde422e217 base64
added b64
2018-10-28 13:36:51 -08:00
4e0184a41d Update caesar_cipher.py
Removed unnecessary recursion and updated code!
2018-10-27 14:14:35 +02:00
2638d57c71 Update caesar_cipher.py 2018-10-24 21:13:42 +02:00
ea2ddaaf6a all valid python 3 2018-10-20 14:45:08 -05:00
b566055e4b Merge branch 'master' of https://github.com/TheAlgorithms/Python 2018-10-20 14:15:21 -05:00
c0f7df7e22 Fixed error on chr function when decrypt (#359)
On line 23 when make the operations returns a float and chr function doesn't permit float values as parameters.
2018-10-19 15:42:19 +02:00
564179a0ec increment 1 2018-10-19 07:48:28 -05:00
718b99ae39 increment 1 2018-10-19 07:48:01 -05:00
5d1f72604d Improved Code and removed Warnings (#483) 2018-10-19 14:00:31 +05:30
0856a61859 Remove Multiple Unused Imports and Variable 2018-10-18 02:58:57 +05:30
3a77380ed3 Undefined name: import random in Onepad_Cipher.py (#339) 2018-09-28 09:47:28 +05:30
d4594da532 print() is a function in Python 3 2018-07-02 10:07:25 +02:00
0c8707d11c Elgamal cipher key generator code - (initial) 2018-06-12 21:21:38 +09:00
602eae756e Elgamal cipher key generator code - (initial) 2018-06-12 21:18:50 +09:00
13617225ca small improvements! 2018-05-28 23:25:48 +02:00
f1fe458356 Updated_caesar_cipher.py
Updated
2018-05-28 19:16:02 +05:30
0fdd2d369e Create Onepad_Cipher.py
In one pad algorithm length of key and length of message are equal which results in endless possibilities of false messages on bruteforce.
2018-04-13 20:49:38 +05:00
4fb978cf58 1. typo fix {playfair_cipher.py, AVL.py}
2. Corrected Logic {AVL.py, 104-107}
3. Removed unnecessary semicolons {BellmanFord.py, Dijkstra.py}
2017-12-31 14:30:31 +05:30
09cc769660 Merge pull request #220 from cclauss/modernize-python2-code
Modernize Python 2 code to get ready for Python 3
2017-12-29 17:19:02 +05:30
eb9fe88e16 Merge pull request #230 from christianbender/master
improvement XOR_cipher.py
2017-12-23 18:25:38 +05:30
0e7d4483ca comment out
I comment out some code lines in the test-section
2017-12-22 17:33:09 +01:00
b25bc2cb30 improvement
I improve my code
2017-12-22 17:30:11 +01:00
ecdfd99c04 Merge pull request #229 from christianbender/master
XOR cipher algorithm
2017-12-22 18:24:43 +05:30
ad265b9b61 XOR cipher algorithm
a class with simple cipher algorithm that uses bitwise XOR
2017-12-21 19:08:58 +01:00
e31c780d94 Modernize Python 2 code to get ready for Python 3 2017-11-25 12:41:55 +01:00
aed9cb16ec chunk() --> chuncker() to resolve undefined name
flake8 results:
```
./ciphers/playfair_cipher.py:88:25: F821 undefined name 'chunk'
    for char1, char2 in chunk(ciphertext, 2):
                        ^
```
2017-11-25 12:15:41 +01:00
4e06949072 Modernize Python 2 code to get ready for Python 3 2017-11-25 10:23:50 +01:00
75af340aff ROT13 2017-10-29 14:44:54 -03:00
73461baeb0 Playfair cipher 2017-08-18 22:41:46 -04:00
43513803f0 Slight Performance/Visual Update 2016-11-09 23:17:04 +09:00
f5c73a6f26 initial 2016-09-06 17:53:48 +05:30
1376e3c3b9 Initial 2016-08-11 18:14:46 +05:30
cf8191130d Initial 2016-08-07 21:18:46 +05:30
f68690f296 Added test cases 2016-08-02 23:16:55 +05:30
8926cc0a30 Cryptography Algorithm 2016-08-02 13:41:36 +05:30
5b72d5e0a1 Cryptography Algorithm 2016-08-01 22:41:06 +05:30
005fb0c5a1 File rename 2016-08-01 21:33:08 +05:30
ab2614574e Move files to separate directories 2016-08-01 15:06:53 +05:00