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


Groups > comp.lang.python > #53817

Re: file handling issues

Date 2013-09-06 21:58 -0600
From Michael Torrie <torriem@gmail.com>
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>
Newsgroups comp.lang.python
Message-ID <mailman.139.1378526351.5461.python-list@python.org> (permalink)

Show all headers | 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