Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Vincent Davis Newsgroups: comp.lang.python Subject: Public key encryption example. Date: Wed, 18 Nov 2015 16:18:28 -0700 Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 9sN3oQGovyMdGKV2YZprYAnfWkVbsgtZhjtZUu04rQpg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.142 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.72; '*S*': 0.01; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:key': 0.16; 'there?': 0.16; 'library': 0.20; 'to:name:python-list@python.org': 0.20; 'keys': 0.22; 'file.': 0.22; 'example': 0.26; 'message- id:@mail.gmail.com': 0.27; 'possibly': 0.32; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'something': 0.35; 'there': 0.36; 'lines': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'received:209': 0.38; 'files': 0.38; 'google': 0.39; 'url:en': 0.39; 'received:209.85.214': 0.39; 'along': 0.39; 'to:addr:python.org': 0.40; 'saving': 0.70; 'cryptography': 0.91; 'subject:Public': 0.91; 'url:latest': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vincentdavis.net; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=LNZF1TpF86EOk727DNBWDcCp79PoZz3J5vQgySbEOsY=; b=JsUfGDWQ+pPIbBUp/5+h8D/bk05c4uL0/asdoePtWDR53WJlA17FP/7RMHd/jn2f2G bjZhdj3SOd74J2KSnbtadyVtXpORj1JJv3Krxt4l1drYq1us59EdrfDn9NZPS724UsDF nmPhPw3bOnA0JDwluZPNw+VNj4OaDcGV9WYlU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=LNZF1TpF86EOk727DNBWDcCp79PoZz3J5vQgySbEOsY=; b=KoQkEwBGt3MPnJ4o/13dcr5kbyuCHSYTgGSOSqP6IjklKMWN6gfnyIA4f6qc5KEym2 cNgOLYCAV95ykY6yIGVcQMamLbBWsxvArKXGQ8RIT40qwd0ewhv/dUj2P8eG4mMUqVvQ G1xW07t7WmjhG6fEJq7IvOHxp8AG+NbO963d7V8U8yastbllYSA8aEIbl3JaBv6RCdC/ cvwy9AnTK9unc1VgLs4XwOxxICQVFdQItPjTXUfpXvl8+JZ+brCIPqVH+i/hwdK6MPB5 k1P/lKs9Z6w/I4KIUMFejrmFcW816ppvXE0yCgY7Q+WAu/2KmxXv11gKxnnyn+bL7j6c hv9Q== X-Gm-Message-State: ALoCoQk3OcfQuSS7XvoU7EffrH/92foz8sUeXkwL1S8GYo8zEmEOjrTFyqyQ84+WFwK1CgmoGVn7 X-Received: by 10.182.97.138 with SMTP id ea10mr2820784obb.54.1447888727597; Wed, 18 Nov 2015 15:18:47 -0800 (PST) X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ 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:99011 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