Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 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
Example #4
0
 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