• API
• FAQ
• Tools
• Trends
• Archive
daily pastebin goal
76%
SHARE
TWEET

# Untitled

a guest May 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. def populate_rands (n):
2.     return list (map (lambda x: randrange (-10,10), range (n)))
3.
4.
5. def sov_encrypt (data):
6.     rands = populate_rands (9)
7.     Z = 90
8.     s = ''
9.
10.     data += chr (0x22)
11.     for c in data [:-1]:
12.         n = str (ord (c)) [0]
13.         if n is '1':
14.             s += 'S' + str (ord (c) + rands [0])
15.         elif n is '2':
16.             s += 'O' + str (ord (c) + rands [1])
17.         elif n is '3':
18.             s += 'V' + str (ord (c) + rands [2])
19.         elif n is '4':
20.             s += 'E' + str (ord (c) + rands [3])
21.         elif n is '5':
22.             s += 'R' + str (ord (c) + rands [4])
23.         elif n is '6':
24.             s += 'A' + str (ord (c) + rands [5])
25.         elif n is '7':
26.             s += 'I' + str (ord (c) + rands [6])
27.         elif n is '8':
28.             s += 'G' + str (ord (c) + rands [7])
29.         elif n is '9':
30.             s += 'N' + str (ord (c) + rands [8])
31.
32.     result = ''
33.
34.     for n in rands:
35.         result += chr (Z + n)
36.
37.     result += s
38.
39.     return result
RAW Paste Data
Top