Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockyzsu committed Feb 23, 2021
1 parent 9a1bd16 commit fbd5ac5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@

股票佣金政策:

**无门槛 万一免5**


* 券商一:

**无门槛 万1免5**【目前免5被取消,如果看重免5费率,可选择下面的券商二】

**场内基金:万0.5**

Expand All @@ -77,11 +81,19 @@



* 券商二

无门槛万1.1免5



当然也有其他主流券商可选,基本可以涵盖主流券商,总有一个适合你的,开户成为有效户可以返现金。

也有港股打新开户,欢迎来撩,非诚勿扰。注明:开户。
----



[![skpwlt.jpg](https://s3.ax1x.com/2021/01/05/skpwlt.jpg)](https://imgchr.com/i/skpwlt)


Expand Down
41 changes: 41 additions & 0 deletions common/aes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import sys
import base64
from Crypto.Cipher import AES
from Crypto import Random
import os
import base64
import json
from binascii import b2a_hex, a2b_hex


class AESDecrypt:

def set_key(self,key):
# key = ''
self.key = self.add_to_16(key)

def add_to_16(self, text):
while len(text) % 16 != 0:
text += '\0'
return text.encode('utf8')

def decode_base64(self, data):
missing_padding = 4-len(data) % 4
if missing_padding:
data += '='*missing_padding
return (data.encode('utf8'))

def decrypt(self, encrypt_data):
encrypt_data = self.decode_base64(encrypt_data)

cipher = AES.new(self.key, mode=AES.MODE_ECB)
result2 = base64.b64decode(encrypt_data)
a = cipher.decrypt(result2)
a = a.decode('utf-8', 'ignore')
a = a.rstrip('\n')
a = a.rstrip('\t')
a = a.rstrip('\r')
a = a.replace('\x06', '')
a = a.replace('\x03', '')
a = a.replace('\03', '')
return a

0 comments on commit fbd5ac5

Please sign in to comment.