473,395 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

simple symetric encryption advice

I would like some advice on what crypto lib to use. I am writing a cgi
app that will store sensative data in a backend postgresql server. I
have some simple numeric data I would like to make as safe as
possible, without too much overhead.

The goal would be to store the information in a simple reversable
encrypted form. The encryption key would live only in the python app
that was accessing the data. So perhaps there are two general
questions that could be asked.

1) has anyone else done this, and was it worth the extra overhead in
terms of data security.. yes, I know the system will only be as secure
as the python code.

2) more important to me, what crypto lib would make sense to use. I
was looking at using symetric key ciphers because the data will need
to be decrypted as well. I looked at the rotor class but there's a big
note that it has been deprecated.. Anyone have a recommendation as to
something better?

by better I would mean: 1) something reasonably fast, (retreiving 1000
tupples of something should require much time to decrypt) 2) something
that the code is fairly well reviewed and tested -- (I know all python
modules are well reviewed and tested, but there must be some modules
that are more equal than others;)).

Any advice appreciated.
Jul 18 '05 #1
1 1673

David Bear <id***@moroni.pp.asu.edu> wrote:

I would like some advice on what crypto lib to use. I am writing a cgi
app that will store sensative data in a backend postgresql server. I
have some simple numeric data I would like to make as safe as
possible, without too much overhead.

The goal would be to store the information in a simple reversable
encrypted form. The encryption key would live only in the python app
that was accessing the data. So perhaps there are two general
questions that could be asked.

1) has anyone else done this, and was it worth the extra overhead in
terms of data security.. yes, I know the system will only be as secure
as the python code.

2) more important to me, what crypto lib would make sense to use. I
was looking at using symetric key ciphers because the data will need
to be decrypted as well. I looked at the rotor class but there's a big
note that it has been deprecated.. Anyone have a recommendation as to
something better?

by better I would mean: 1) something reasonably fast, (retreiving 1000
tupples of something should require much time to decrypt) 2) something
that the code is fairly well reviewed and tested -- (I know all python
modules are well reviewed and tested, but there must be some modules
that are more equal than others;)).


Check out the pure Python TLS Lite and its AES or RC4 ciphers (no
worries about compilation). They should be reasonable for most tasks,
and if you need more speed, There's always using PyCrypto, OpenSSL and
Cryptlib.

- Josiah

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Blake T. Garretson | last post by:
I want to save some sensitive data (passwords, PIN numbers, etc.) to disk in a secure manner in one of my programs. What is the easiest/best way to accomplish strong file encryption in Python? ...
4
by: panik | last post by:
Hi, I'm looking for something similar to Encryption. I'd like to generate URL's with a format that avoids visible ID's (e.g. http://thesite/viewlink.aspx?ID=105) Instead, I'd like to generate a...
6
by: larry mckay | last post by:
Hi, Does anyone have any simple text string encryption routines that are easy to implement? I'm trying to prevent users and system administrators from figuring out how I implement things....
4
by: Kinsley Turner | last post by:
Hey-ho, I'm getting a bit out of my depth porting the 'tiny encryption algorithm' from C to python. Ref: http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
5
by: eugenet | last post by:
Hello, I need to encrypt and decrypt a string in .NET Framwork 2.0. What is the easiest way to do it? I know that there are many different ways to use encryption in .NET, some more complex...
7
by: Mark Rae | last post by:
Hi, Picking your collective brains again, this time regarding the storage of the key used in symmetric encryption. Let's say you have a requirement to add encryption to a C# project, so you...
11
by: John Williams | last post by:
I've written a simple program to do XOR encryption as my first foray into understanding how encryption works. The code compiles fine, however it segmentation faults on every run. using gdb to...
2
by: olafinsbraaten | last post by:
I am using column-level encryption (ENCRYPT_CHAR, DECRYPT_CHAR) to protect selected columns in DB2 LUW v.9.1 and v.9.5 on Linux. The ultimate goal is to support the requirements put forward in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.