Python/hashes
QuantumNovice 95a4957d9e
Luhn algorithm (#4487)
* Luhn algorithm

Perform Luhn validation on input string
    Algorithm:
    * Double every other digit starting from 2nd last digit.
    * Subtract 9 if number is greater than 9.
    * Sum the numbers
https://en.wikipedia.org/wiki/Luhn_algorithm

* Update DIRECTORY.md

* Update luhn.py

* Update luhn.py

* Update luhn.py

* Update luhn.py

* Update DIRECTORY.md
2021-06-13 23:49:44 +05:30
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
adler32.py [mypy] fix hashes folder (#4305) 2021-04-03 13:31:46 +05:30
chaos_machine.py [mypy] fix hashes folder (#4305) 2021-04-03 13:31:46 +05:30
djb2.py Hash djb2 (#2098) 2020-06-16 22:22:47 +02:00
enigma_machine.py [mypy] fix hashes folder (#4305) 2021-04-03 13:31:46 +05:30
hamming_code.py hamming_code.py: Reduce McCabe code complexity (#2140) 2020-06-22 14:18:57 +02:00
luhn.py Luhn algorithm (#4487) 2021-06-13 23:49:44 +05:30
md5.py fix(ci): Update pre-commit hooks and apply new black (#4359) 2021-04-26 07:46:50 +02:00
sdbm.py [mypy] fix hashes folder (#4305) 2021-04-03 13:31:46 +05:30
sha1.py Fixed typo in caesar_cipher.py (#2979) 2020-10-17 13:26:11 +05:30