मैथमैटिका में कभी भी अतिप्रवाह त्रुटि नहीं थी, निम्नलिखित हुआ।गणित ओवरफ्लो [] त्रुटि: क्यों और कैसे बाईपास करें?
RSA-एन्क्रिप्शन के सिद्धांत मैं डेमो-एड इस प्रकार है:
n = 11*13
m = EulerPhi[n]
e = 7
GCD[e, m]
d = PowerMod[e, -1, m]
cipher2[m_String] := Map[Mod[#^e, n] &, ToCharacterCode[m]]
decipher2[x_Integer] := FromCharacterCode[Map[Mod[#^d, n] &, x]]
In[207]:= cipher2["StackOverflow"]
decipher2[cipher2["StackOverflow"]]
Out[207]= {8,129,59,44,68,40,79,62,49,119,4,45,37}
Out[208]= StackOverflow
कोई समस्या नहीं है sofar।
तब मैंने प्राइम संख्याओं को और यथार्थवादी रूप से बदल दिया, लेकिन अभी भी बहुत ही मध्यम आकार में बदल गया।
n = 252097800611*252097800629
In[236]:= cipher2["StackOverflow"]
decipher2[cipher2["StackOverflow"]]
Out[236]= {27136050989627, 282621973446656, 80798284478113, \
93206534790699, 160578147647843, 19203908986159, 318547390056832, \
107213535210701, 250226879128704, 114868566764928, 171382426877952, \
207616015289871, 337931541778439}
During evaluation of In[236]:= General::ovfl: Overflow occurred in computation. >>
During evaluation of In[236]:= General::ovfl: Overflow occurred in computation. >>
Out[237]= FromCharacterCode[{Overflow[], Overflow[], Overflow[],
Overflow[], Overflow[], Overflow[], Overflow[], Overflow[],
Overflow[], Overflow[], Overflow[], Overflow[], Overflow[]}]
प्रश्न: मैं बस मेथेमेटिका की सीमा के माध्यम से चला है? क्या मैंने गलत दृष्टिकोण इस्तेमाल किया है? बाई पास क्या है, अगर कोई है ??
धन्यवाद अर्नोउड, (अपने नाम से पता चलता आपके पास बेल्जियम में, या एनएल जहां मैं रहता हूं।) –