Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99011 > unrolled thread
| Started by | Vincent Davis <vincent@vincentdavis.net> |
|---|---|
| First post | 2015-11-18 16:18 -0700 |
| Last post | 2015-11-18 19:22 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
Public key encryption example. Vincent Davis <vincent@vincentdavis.net> - 2015-11-18 16:18 -0700
Re: Public key encryption example. Paul Rubin <no.email@nospam.invalid> - 2015-11-18 15:56 -0800
Re: Public key encryption example. Chris Angelico <rosuav@gmail.com> - 2015-11-19 11:04 +1100
Re: Public key encryption example. Vincent Davis <vincent@vincentdavis.net> - 2015-11-18 19:22 -0700
| From | Vincent Davis <vincent@vincentdavis.net> |
|---|---|
| Date | 2015-11-18 16:18 -0700 |
| Subject | Public key encryption example. |
| Message-ID | <mailman.431.1447888735.16136.python-list@python.org> |
This might be a "Let me Google that for you question", I tried. I am looking for the "simplest" example of sending(encrypting) and receiving(decrypting) using public key encryption. I am think of something along the lines of having all the keys in local files and saving and reading the message from a local file. Possibly using cryptography library elliptic-curve https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#elliptic-curve-signature-algorithms Surly there is an example out there? Vincent Davis
[toc] | [next] | [standalone]
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Date | 2015-11-18 15:56 -0800 |
| Message-ID | <87vb8ylv5a.fsf@nightsong.com> |
| In reply to | #99011 |
Vincent Davis <vincent@vincentdavis.net> writes: > I am looking for the "simplest" example of sending(encrypting) and > receiving(decrypting) using public key encryption. I am think of something > along the lines of having all the keys in local files and saving and > reading the message from a local file. It's very easy to make mistakes doing stuff like that. Your simplest bet is to shell out to GPG or something comparable.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-11-19 11:04 +1100 |
| Message-ID | <mailman.434.1447891448.16136.python-list@python.org> |
| In reply to | #99013 |
On Thu, Nov 19, 2015 at 10:56 AM, Paul Rubin <no.email@nospam.invalid> wrote: > Vincent Davis <vincent@vincentdavis.net> writes: >> I am looking for the "simplest" example of sending(encrypting) and >> receiving(decrypting) using public key encryption. I am think of something >> along the lines of having all the keys in local files and saving and >> reading the message from a local file. > > It's very easy to make mistakes doing stuff like that. Your simplest > bet is to shell out to GPG or something comparable. It's not that hard to pull up a library. I've never done it in Python, though. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Vincent Davis <vincent@vincentdavis.net> |
|---|---|
| Date | 2015-11-18 19:22 -0700 |
| Message-ID | <mailman.443.1447899772.16136.python-list@python.org> |
| In reply to | #99013 |
Found an example, needs a little updating but then it works (appears to) in python 3.5. http://coding4streetcred.com/blog/post/Asymmetric-Encryption-Revisited-(in-PyCrypto) Vincent Davis 720-301-3003 On Wed, Nov 18, 2015 at 5:04 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Thu, Nov 19, 2015 at 10:56 AM, Paul Rubin <no.email@nospam.invalid> > wrote: > > Vincent Davis <vincent@vincentdavis.net> writes: > >> I am looking for the "simplest" example of sending(encrypting) and > >> receiving(decrypting) using public key encryption. I am think of > something > >> along the lines of having all the keys in local files and saving and > >> reading the message from a local file. > > > > It's very easy to make mistakes doing stuff like that. Your simplest > > bet is to shell out to GPG or something comparable. > > It's not that hard to pull up a library. I've never done it in Python, > though. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web