Changes

Tutorial B11 Breaking RSA

35 bytes removed, 15:01, 3 August 2018
Automating the Attack
<syntaxhighlight lang="python">
last_t diffs = -1for t,d in enumeratenp.array(diffs): if d loc = np.where(diffs < 10: ) if last_t > #Get actual listloc = loc[0] for i in range(0, len(loc)-1): delta = tloc[i+1]-last_tloc[i] print delta last_t = tdiff
</syntaxhighlight>
bitnum = 17
last_t diffs = -1for t,d in enumeratenp.array(diffs): if d loc = np.where(diffs < 10: ) bitnum -#Get actual listloc = 1loc[0] if last_t > for i in range(0, len(loc)-1): delta = tloc[i+1]-last_tloc[i] print delta if delta > 1300: recovered_key | bitnum -= 1<<bitnum
last_t if delta > 1300: recovered_key |= t1<<bitnum
print("Key = %04x"%recovered_key)
bitnum = 17
#The following is a different way to get the delta
last_t = -1
for t,d in enumerate(diffs):
Approved_users, bureaucrat, administrator
1,956
edits