Re: AES Encryption/Decryption

2018-11-02 Thread Peter via Python-list
On 3/11/2018 1:42 AM, Jeff M wrote: Python newbie here, looking for code samples for encrypting and decrypting functions, using AES. See lots of stuff on the interwebs, but lots of comments back an forth about bugs, or implemented incorrect, etc... I need to encrypt some strings that will be

Re: AES Encryption/Decryption

2018-11-02 Thread Lutz Horn
On Fri, Nov 02, 2018 at 07:42:24AM -0700, Jeff M wrote: > Python newbie here, looking for code samples for encrypting and > decrypting functions, using AES. See lots of stuff on the interwebs, > but lots of comments back an forth about bugs, or implemented > incorrect, etc... > > I need to encryp

Re: AES Encryption/Decryption

2018-11-02 Thread Christian Heimes
On 02/11/2018 15.42, Jeff M wrote: > Python newbie here, looking for code samples for encrypting and decrypting > functions, using AES. See lots of stuff on the interwebs, but lots of > comments back an forth about bugs, or implemented incorrect, etc... > > I need to encrypt some strings that w

Re: AES Encryption of byte array

2011-03-01 Thread Tom Zych
On Tue, 01 Mar 2011 14:38 -0500, "Meszaros, Stacy" wrote: > 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,

Re: AES encryption

2006-03-10 Thread Bryan Olson
I wrote: > Tuvas wrote: > [...] > >> I've tested my function with a thousand random texts, it >> seems to return the same result as received every time. > > > Unfortunately, the results seem incorrect, self-consistent > as they may be. The following will call your code, and > check the results a

Re: AES encryption

2006-03-07 Thread Tuvas
Ere, I mean testing only symetrical keys, and symetrical messages, nothing more realistic. Sigh. Oh well. It works, and that's the important thing. I don't know if I'll put in support for the larger key sizes, but, I'll leave it be for now. -- http://mail.python.org/mailman/listinfo/python-list

Re: AES encryption

2006-03-07 Thread Tuvas
Okay, I figured out the problem. The problem was that my algorythm filed the numbers into the matrix as so: 1 2 3 4 5 6 7 8... While it should have been 1 5 9 13 2 6 10 14 ... When this was fixed, the program works great! That's what I get for testing only asymetrical keys... Oh well, thanks for

Re: AES encryption

2006-03-07 Thread Tuvas
I don't know if it means anything, but the AES system that I have isn't set up to do anything other than 128 bit encryption at the moment, nor will it likely do so, mainly because most systems only explain how to get the 128 encryption, and not the larger sizes. I'm sure it's fairly easy to change,

Re: AES encryption

2006-03-07 Thread Bryan Olson
Tuvas wrote: [...] > I've tested my function with a thousand random texts, it > seems to return the same result as received every time. Unfortunately, the results seem incorrect, self-consistent as they may be. The following will call your code, and check the results against 3 popular test vectors