Re: [Tutor] Require Python assistance
On 10/11/2018 18:10, Avi Gross wrote: > WARNING to any that care: > > As the following letter is a repeat request without any hint they read the > earlier comments here, I did a little searching and see very much the same > request on another forum asking how to do this in MATLAB: The OP has also repeated posted the same message to this list (which I rejected as moderator). -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Require Python assistance
WARNING to any that care: As the following letter is a repeat request without any hint they read the earlier comments here, I did a little searching and see very much the same request on another forum asking how to do this in MATLAB: https://forum.allaboutcircuits.com/threads/matlab-programming-language-for-cryptography.153704/ """ Dear May I know how to solve the cryptography with Matlab programming language as below - (1) Implement Elgamal Method (2) Implement Elliptic Curve Cryptography method (3) Implement RSA Method (4) Implement Rabin Method Find (a) Prime test (b) Inverse function Please help me by provide your advice and suggestion so that I can improve my computing skills (please see the attached file) Prayerfully """ I note someone there also wonders if this is HW. And, it is formatted better on multiple lines as compared to our version. If I had to guess, it might be another sort of HW as in a Cryptography course or Analysis of Algorithms and the person is wanting a way to implement it, not practice any particular language. Many people do not speak English as a native language and we can make allowances while trying to understand what they want. But the above looks like a form-letter starting with DEAR and leaving room for the name(s) of the intended recipients and ends with the slightly different ending of Prayerfully as compared to Sincerely or Thanks in Advance and so on and no signature. I am not sure what to make of this and am simply going to ignore the request as it seems to be a shotgun approach ... Many problems can be solved in multiple languages. But if the request had simply been to point them to information on the cryptographic methods, it would not fit well in a list about problems with doing things in Python. -Original Message- From: Tutor On Behalf Of TCY via Tutor Sent: Saturday, November 10, 2018 10:43 AM To: tutor@python.org Subject: [Tutor] Require Python assistance 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 your advice and suggestion so that I can improve my computing skills (please see the attached file) Prayerfully Tron Orino Yeong tcynoteb...@yahoo.com 0916643858 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Require Python assistance
On Fri, Nov 09, 2018 at 03:17:18PM -0500, Avi Gross wrote: > 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. My guess is that the OP is doing a comp sci course and has been given an assignment to write some crypto code. Notice the use of the word "implement" -- my guess is that the assignment is to implement these classic crypto algorithms as an exercise, rather than use an existing, polished crypto library. That is, it's homework. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Require Python assistance
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 they could easily incorporate. From the text shown, does it not seem like some kind of HW assignment perhaps to compare and contrast various methods? As usual, attachments cannot be seen. If someone is interested, you can ask, in situations like these, to be sent such things directly to your mail. Alternately, there are services out there that let you share files in the cloud for retrieval, sometimes even quite large files. Sending a link like that with your message might work, in moderation. The message indicates they want to improve their computing skills. That may suggest wanting to implement algorithms in basic Python from scratch, as compared to wanting packages that do it all for you. If I were asking for help, I have some things I would include that include spelling out what I need but also a synopsis of what I have done, such as go a search for: " python encryption package " or whatever. If it was an assignment in on page that might be worth mentioning. As I see it, not speaking for Alan, I see several kinds of useful purposes in tutoring. One is to help someone get started when they have no idea what resources to even look for. You may also want to ask questions to get them to spell out their need more clearly and perhaps figure out what to do. You then expect them to go away and do the work. If they come back, it should be with a more focused need and again, they should get advice and hints and maybe a brief example but not have the work done for them. If they have a bug, and have narrowed it down using print statements or debuggers or local help, and can reproduce it in a small example, maybe they can ask if others can detect some syntax error or logic error. I recently heard that Python 3.8 or so may add a new assignment operator (:=) so if they tried it and failed under existing versions, we might tell them to either not use it now or wait. This group is open and welcoming and should remain so. But it is reasonable to expect that answers and suggestions will not be given unless enough information is presented. I understand that attachments are not allowed for an assortment of reasons. The forum is hosted on python.org and space is limited. I could see creating a companion group such as pythontutorattachme...@groups.yahoo.com where you could send messages with attachments for those who wish to subscribe with the main interaction remaining here or one-on-one. Back to the case in point. Can I assume all the encryption methods have been implemented in anything from algorithm pseudocode to in some programming language (perhaps other than Python) in a form you can read the source code? If so, assuming multilingual abilities, the problem becomes one of translating it into Python. But, of course, if the need is to make it work in all reasonable versions of Python, good luck! But before we are asked, SEARCH for things. A few well placed keywords can locate so much. Part of learning to be a programmer is to do as much as you can by yourself. -Original Message- From: Tutor On Behalf Of TCY via Tutor Sent: Friday, November 9, 2018 8:13 AM To: tutor@python.org Subject: [Tutor] Require Python assistance 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 your advice and suggestion so that I can improve my computing skills (please see the attached file) Prayerfully Tron Orino Yeong tcynoteb...@yahoo.com 0916643858 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Require Python assistance
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 Rabin Method(4) Implement RSA Method >> Find (a) Prime test (b) Inverse function > > This list does not send attachments. If the file is not large just send it > as part of the email body. > > As you can see the text above came thru as 1 long line. I presume when you > sent it it looked like 4 lines. If that is the case you need to send the > email as plain text rather than some fancy formatted way. > >> Please help me by provide your advice > > Learn how to ask questions that are more precise and specific. "Solve the > cryptography" doesn't tell me anything. The more clearly you state your > objectives the easier it becomes for us to help you. > > Google is your friend here. For example try searching Google for "Elliptic > Curve Cryptography python" > and suggestion so that I can improve my computing skills (please see the > attached file) There has been a *lot* of crypto work in Python. If your objective is to learn the techniques you might look at what others have done, if your objective is to use these techniques, there's a decent chance it has been already implemented. You could look, as a starting point (but by no means as the only resource), at the pycrypto package https://www.dlitz.net/software/pycrypto/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Require Python assistance
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) Prime test (b) Inverse function This list does not send attachments. If the file is not large just send it as part of the email body. As you can see the text above came thru as 1 long line. I presume when you sent it it looked like 4 lines. If that is the case you need to send the email as plain text rather than some fancy formatted way. > Please help me by provide your advice Learn how to ask questions that are more precise and specific. "Solve the cryptography" doesn't tell me anything. The more clearly you state your objectives the easier it becomes for us to help you. Google is your friend here. For example try searching Google for "Elliptic Curve Cryptography python" and suggestion so that I can improve my computing skills (please see the attached file) Bob Gailer ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Require Python assistance
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 your advice and suggestion so that I can improve my computing skills (please see the attached file) Prayerfully Tron Orino Yeong tcynoteb...@yahoo.com 0916643858 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor