Re: [Tutor] Require Python assistance

2018-11-09 Thread Avi Gross
As I see others have replied, the question is not easy to understand and seems so broad as to be overwhelming to actually do without further info. It would be easier if someone asked if we could direct him to resources that either explain the algorithms needed or to full-blown packages/modules

Re: [Tutor] best way to dynamically set class variables?

2018-11-09 Thread Albert-Jan Roskam
On 10 Nov 2018 01:03, Steven D'Aprano wrote: On Thu, Nov 08, 2018 at 11:34:35AM -0500, Avi Gross wrote: > An interesting discussion that is outside the scope of a group like this is > HOW malicious things can be done and perhaps how to avoid them. > Isn't the rule, simply: this_is_stupid =

Re: [Tutor] best way to dynamically set class variables?

2018-11-09 Thread Steven D'Aprano
On Thu, Nov 08, 2018 at 11:34:35AM -0500, Avi Gross wrote: > An interesting discussion that is outside the scope of a group like this is > HOW malicious things can be done and perhaps how to avoid them. > > Obviously some contexts are totally uncontrolled. If you write a > "calculator" that asks

Re: [Tutor] best way to dynamically set class variables?

2018-11-09 Thread Avi Gross
An interesting discussion that is outside the scope of a group like this is HOW malicious things can be done and perhaps how to avoid them. Obviously some contexts are totally uncontrolled. If you write a "calculator" that asks the user to type in an arbitrary string like "2*(3+5)" or "sin(30)"

Re: [Tutor] best way to dynamically set class variables?

2018-11-09 Thread Albert-Jan Roskam
On 8 Nov 2018 17:34, Avi Gross wrote: > What can you do to minimize risks in such > situations? ast.literal_eval, with a smallish maximum string length? https://docs.python.org/3/library/ast.html. (That's exactly the only ast function that know! :-)

[Tutor] Require Python assistance

2018-11-09 Thread TCY via Tutor
Dear      May I know how to solve the cryptography with Python programming language as below - (1) Implement Elgamal Method(2) Implement Elliptic Curve Cryptography method(3) Implement Rabin Method(4) Implement RSA Method Find (a) Prime test (b) Inverse function Please help me by provide

Re: [Tutor] Require Python assistance

2018-11-09 Thread Bob Gailer
On Nov 9, 2018 12:34 PM, "TCY via Tutor" wrote: > > > > > Dear > May I know how to solve the cryptography with Python programming language as below - > (1) Implement Elgamal Method(2) Implement Elliptic Curve Cryptography method(3) Implement Rabin Method(4) Implement RSA Method > Find (a)

Re: [Tutor] Require Python assistance

2018-11-09 Thread Mats Wichmann
On 11/9/18 11:59 AM, Bob Gailer wrote: > On Nov 9, 2018 12:34 PM, "TCY via Tutor" wrote: >> >> >> >> >> Dear >> May I know how to solve the cryptography with Python programming > language as below - >> (1) Implement Elgamal Method(2) Implement Elliptic Curve Cryptography > method(3) Implement