Name: Anonymous 2017-07-29 17:56
https://pastebin.com/qprgVAmc
(couldn't post it here)
(couldn't post it here)
range
in py3 is the same as xrange
in py2. py3 removed the eager version and removed the lazy one:
In [1]: r = range(0,10)
In [2]: r
Out[2]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
In [3]: x = xrange(0,10)
In [4]: x
Out[4]: xrange(10)
In [5]: list(x)
Out[5]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[1]: r = range(10)
In [2]: r
Out[2]: range(0, 10)
In [3]: list(r)
Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
py3 removed the eager version and renamed the lazy one:if that's the case, then executing the following:
for i in range(0,100000000000):
continue;
for i in xrange(0,100000000000):
continue;
range
object is possible, just like creating an xrange
in py2 and unlike range
in py2:In [1]: range(0,100000000000)
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-1-ea3b586c469a> in <module>()
----> 1 range(0,100000000000)
MemoryError:
In [2]: xrange(0,100000000000)
Out[2]: xrange(100000000000)
In [1]: range(0,100000000000)
Out[1]: range(0, 100000000000)
I never actually cryptoanalyzed it, i'm not into that.Then you'd know you shouldn't roll your own crypto.