RSA Encryption Part 2, Computer Security

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=Qvnpw_A8iBs



Duration: 2:30:20
160 views
1


Today I gave some tips on how to code RSA. It's pretty easy, there's just some tricky bits in converting a string to a number, which you do by shifting the current number 8 bits left and then adding in the current character to it, over and over until there are no characters left. Unpacking the number works the same way, by modulusing by 256 to get the last character and then bit shifting everything right 8 bits. This will give you the string backwards, so push it into a stack or something and pop it off.


We then talked about different stories from the security world and ran through a review of modular math.







Tags:
csci 26
modular math
modular arithmetic
rsa
security
hacking