Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: Public key encryption example. Date: Thu, 19 Nov 2015 12:51:23 +0100 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 691nPK/xDoaRvYef8kOCsQXazDWL+XNMvtUAE6O7H06g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'cc:addr :python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'wed,': 0.15; '>along': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:> 20': 0.16; 'subject:key': 0.16; 'there?': 0.16; 'laura': 0.18; 'library': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'keys': 0.22; 'file.': 0.22; 'cc:no real name:2**0': 0.22; 'example': 0.26; 'this.': 0.28; '-0700,': 0.29; 'received:se': 0.29; 'code': 0.30; 'url:python': 0.33; 'nov': 0.35; 'something': 0.35; "isn't": 0.35; 'there': 0.36; 'url:org': 0.36; 'lines': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'charset:us-ascii': 0.37; 'files': 0.38; 'google': 0.39; 'url:en': 0.39; 'does': 0.39; 'header:Message-Id:1': 0.61; 'here': 0.66; 'saving': 0.70; 'header:In-reply-to:1': 0.84; 'pycrypto': 0.84; 'url:posts': 0.84; 'cryptography': 0.91; 'subject:Public': 0.91; 'url:latest': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1447933888; bh=0VcLSaOmC8rTSlGhjhPvwwMqKNaaz72mkJ4H5toS/v4=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=UiuxXJlixqSGdvcjLdhNxe2WUZL3XGgzBFdbKiecv4xoHrvDHSpdMzUgUSBpyrj/i Fw2Ec1KhCMpudFWg8u8Obx4LDOmLG5+JdrU1vtVFwRbGAFYajXE+CroF2kZ1hbPiex wvImtelM7IN+GsoFk31Y5dVP8mKXJNFYOsxIsfOY= In-reply-to: Comments: In-reply-to Vincent Davis message dated "Wed, 18 Nov 2015 16:18:28 -0700." Content-ID: <18073.1447933883.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Thu, 19 Nov 2015 12:51:28 +0100 (CET) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99049 In a message of Wed, 18 Nov 2015 16:18:28 -0700, Vincent Davis writes: >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 somethin= g >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/#ellipt= ic-curve-signature-algorithms > >Surly there is an example out there? > >Vincent Davis pycrypto does this. https://pypi.python.org/pypi/pycrypto code and diagrams here http://www.laurentluce.com/posts/python-and-cryptography-with-pycrypto/ There really isn't much to it. Laura