Is that safe to use ramdom.random() for key to encrypt?

Paul Rubin no.email at nospam.invalid
Sat Jun 16 22:58:25 EDT 2012


Yesterday Paid <howmuchistoday at gmail.com> writes:
> I'm making cipher program with random.seed(), random.random() as the
> key table of encryption...
> Is it really random or safe enough to keep my data safe?

No.  Use os.urandom instead.



More information about the Python-list mailing list