def generateHexstrs(self): #Get the length of the entropy string as an integer if the length is greather than 1024, set it to 1024 subtract it from the last 3 digits of current unix timestamp) entlen = len(self.entropy) if entlen > 1024: entlen = 1024 - int(str(gettime())[-4:-1]) if self.days != 0: for x in range(1, self.days + 1): row = '' row += sha256(randbytes(32 + entlen) + self.hashedentropy) row += sha256(self.hashedentropy + randbytes(32 + entlen)) self.hexstrs.append(row)
def generateHexstrs(self): #Get the length of the entropy string as an integer if the length is greather than 1024, set it to 1024 subtract it from the last 3 digits of current unix timestamp) entlen = len(self.entropy) if entlen > 1024: entlen = 1024 - int(str(gettime())[-4:-1]) if self.days !=0: for x in range(1,self.days+1): row='' row+=sha256(randbytes(32+entlen)+self.hashedentropy) row+=sha256(self.hashedentropy + randbytes(32+entlen)) self.hexstrs.append(row)
def __init__(self, entropy): self.entropy = entropy #Source of User Inputted Entropy self.hashedentropy = sha256(entropy) #Hex Values we can pull from given the User Inputted Entropy
def __init__(self, entropy): self.entropy = entropy #Source of User Inputted Entropy self.hashedentropy = sha256( entropy ) #Hex Values we can pull from given the User Inputted Entropy