VBForums - Maths Forum
http://www.vbforums.com/
By popular request, a place for you to discuss Maths of all forms. Somewhere to think about algorithms and the applications of maths to programming too.enSat, 23 Mar 2019 09:20:46 GMTvBulletin60http://www.vbforums.com/images/misc/rss.pngVBForums - Maths Forum
http://www.vbforums.com/
Cryptography Decoder
http://www.vbforums.com/showthread.php?872095-Cryptography-Decoder&goto=newpost
Tue, 05 Mar 2019 00:30:34 GMTI need some help creating a code for my cryptography decoder. The user enters two values (n,e) and the code enters a loop find a value d such that:
e * d = 1 mod n ( n is the Euler totient function or φ(n), e is invertible in Z(phi(n)) and d is its inverse). I have a code to find the phi(n)/φ(n), but I can't figure out a way to find d.