[[File:B11_diff_plot.png|400px]]
BONUS: Why not use correlation or something else instead of the Sum of Difference metric? You can try that if you'd like:
<syntaxhighlight>
diffs = [] diffs corr_data = np.correlate(rsa_one, tm.getTrace(target_trace_number), mode='full') plot(diffscorr_data, 'r')
show()
</syntaxhighlight>
This is most useful when plotted on-top of the SAD plot.
== Automating the Attack ==