Subscribe to thetrh51        RSS Feed
-----

Credit card Encrypter in Python using the CVD and Expiration date

Icon Leave Comment
just some python code I dreamed up to encrypt a credit card for storage

#! C:\\Python2.7\\
# Credit Card Encryption
# BY : TRISTAN HENNING
# [email protected]
# USE UNDER THE GNU LICENCE OR COMPATIBLE

def Scramble(endDate, CVD, cardNumber):
    CVD = CVD + 0.0
    a2plusb2 = (endDate**2)+(CVD**2)
    scrambled = cardNumber / a2plusb2
    return scrambled

def deScramble(endDate, CVD, scrambledCardNumber):
    CVD = CVD + 0.0
    a2plusb2 = (endDate**2) + (CVD**2)
    descrambled = scrambledCardNumber * a2plusb2
    return descrambled

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Tags

    Recent Entries

    Search My Blog

    5 user(s) viewing

    5 Guests
    0 member(s)
    0 anonymous member(s)

    Categories