Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
-Fixed keyspace mistake.
  • Loading branch information
Scratchcat1 authored Jan 9, 2018
1 parent 0ee96aa commit 64b34fb
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions AATC_Crypto.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#AATC crypto module
import codecs,recvall,ast,binascii,os,AATC_Config,AATC_CryptoBeta
import codecs,recvall,ast,os,AATC_Config,AATC_CryptoBeta
from Crypto.Cipher import AES,PKCS1_OAEP
from Crypto.PublicKey import RSA

Expand Down Expand Up @@ -196,26 +196,7 @@ def SetEncryptionKeys(self,AESKey,IV):























##############################################



Expand All @@ -242,8 +223,8 @@ def SplitData(self,data):


def GenerateKeys(AES_KeySize):
AESKey = binascii.b2a_hex(os.urandom(AES_KeySize//2)) # Here to allow regeneration of AES key while still in loop if required.

This comment has been minimized.

Copy link
@Scratchcat1

Scratchcat1 Jan 9, 2018

Owner

This removed section restricted the keyspace used to hexadecimal only.

IV = binascii.b2a_hex(os.urandom(AES_KeySize//2))
AESKey = os.urandom(AES_KeySize) # Here to allow regeneration of AES key while still in loop if required.
IV = os.urandom(AES_KeySize)
return AESKey,IV


0 comments on commit 64b34fb

Please sign in to comment.