RE: Inserting record into postgresql database

2011-03-14 Thread Meszaros, Stacy
, 2011 7:32 PM To: python-list@python.org Subject: Re: Inserting record into postgresql database On 11/03/2011 22:08, Meszaros, Stacy wrote: Hello all, I am using python 2.6 and the psycopg2 module for the postgres connection The following code is supposed to insert a record into a table

Inserting record into postgresql database

2011-03-11 Thread Meszaros, Stacy
Hello all, I am using python 2.6 and the psycopg2 module for the postgres connection The following code is supposed to insert a record into a table with a bytea field. (bytearray) I am having difficulty getting to field inserted properly. The snippet below inserts the first 8 bit hex value,

AES Encryption of byte array

2011-03-01 Thread Meszaros, Stacy
Hello all, I am very new to python, using it to write a test application. I need to be able to encrypt part of a byte array (up to 256 bytes where the first 7 bytes remain plain text) using AES 128 bit CBC encryption. I am using Python 2.6, can anyone recommend a toolkit or module? Thanks,