Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53817

Re: file handling issues

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'algorithm': 0.04; 'subject:file': 0.07; 'work!': 0.07; 'sake': 0.09; 'python': 0.11; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'logical,': 0.16; 'subject:handling': 0.16; 'symmetric': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'basically': 0.19; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'sort': 0.25; 'source': 0.25; 'header :In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'embed': 0.31; 'libraries': 0.31; 'anyone': 0.31; 'file': 0.32; 'another': 0.32; 'text': 0.33; 'open': 0.33; 'moment': 0.34; 'message.': 0.35; 'basic': 0.35; 'case,': 0.35; 'there': 0.35; 'library.': 0.36; 'two': 0.37; 'clear': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'most': 0.60; 'numbers': 0.61; 'simply': 0.61; "you'll": 0.62; 'more': 0.64; 'desperately': 0.84; 'leo': 0.84; 'of?': 0.84; 'cryptography': 0.91
X-Virus-Scanned amavisd-new at torriefamily.org
Date Fri, 06 Sep 2013 21:58:43 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12
MIME-Version 1.0
To python-list@python.org
Subject Re: file handling issues
References <ebbd1657-e0c8-44c7-ad35-eddf7fa9db2a@googlegroups.com> <m261ueq60w.fsf@cochabamba.vanoostrum.org> <43df7574-a7cd-45e2-a067-ae9c83c3a720@googlegroups.com> <41b6c459-ea3b-4714-9c52-fa916bd5c15c@googlegroups.com>
In-Reply-To <41b6c459-ea3b-4714-9c52-fa916bd5c15c@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.139.1378526351.5461.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378526351 news.xs4all.nl 15936 [2001:888:2000:d::a6]:38121
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53817

Show key headers only | View raw


On 09/06/2013 09:05 PM, Leo Carnovale wrote:
> Ah and one other thing! What is this crypto algorithm you speak of? I
> desperately need some sort of encryption as at the moment anyone can
> simply open the text file and change the numbers to numbers that
> work! Where can I learn more about it?

There are two kinds of cryptography, generally.  Symmetric and
asymmetric.  Your needs will dictate which system you use.  Symmetric
cryptography means that the sake encryption key that was used to encrypt
the data is used to decrypt it.  Asymmetric cryptography basically means
one key is used to encrypt a message and another key is used to decrypt
the message.

In your case, perhaps symmetric encryption is most logical, though I'm
not at all clear what you are doing.  However you'll have to embed the
encryption key in your python source code, which isn't hidden at all.
And actually any program that embeds a symmetric key in its code can be
cracked rather easily.

Python has many libraries to support encryption.  Some are in the
standard library.  Search for python and crypto to see what docs are
available.  You might want to read up on basic cryptography principles
as well.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

file handling issues leo.carnovale@gmail.com - 2013-09-06 03:20 -0700
  Re: file handling issues leo.carnovale@gmail.com - 2013-09-06 03:22 -0700
  Re: file handling issues Piet van Oostrum <piet@vanoostrum.org> - 2013-09-06 12:17 -0400
    Re: file handling issues Leo Carnovale <leo.carnovale@gmail.com> - 2013-09-06 20:03 -0700
      Re: file handling issues Leo Carnovale <leo.carnovale@gmail.com> - 2013-09-06 20:05 -0700
        Re: file handling issues Michael Torrie <torriem@gmail.com> - 2013-09-06 21:58 -0600
          Re: file handling issues Leo Carnovale <leo.carnovale@gmail.com> - 2013-09-06 23:22 -0700
        Re: file handling issues Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-07 13:37 -0400
        Re: file handling issues Piet van Oostrum <piet@vanoostrum.org> - 2013-09-07 15:33 -0400

csiph-web