modes for AES encryption?

Discussion in 'Python' started by Chris Curvey, Mar 24, 2005.

  1. Chris Curvey

    Chris Curvey Guest

    I'm trying to use the AES module in the Python Cryptography Toolkit. I
    need to set the mode to "ECB/NoPadding", and there's a reference to a
    "Mode" parameter in the new() function, but no examples for AES. Who
    can point me in the right direction?
    Chris Curvey, Mar 24, 2005
    #1
    1. Advertising

  2. Chris Curvey

    Chris Curvey Guest

    Chris Curvey wrote:
    > I'm trying to use the AES module in the Python Cryptography Toolkit. I
    > need to set the mode to "ECB/NoPadding", and there's a reference to a
    > "Mode" parameter in the new() function, but no examples for AES. Who
    > can point me in the right direction?


    Answering my own question for posterity...ECB is your *only* option for
    AES, and you have to do your own padding (pad with "\0" to emulate
    NoPadding).
    Chris Curvey, Mar 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lars J.
    Replies:
    0
    Views:
    476
    Lars J.
    Jul 31, 2005
  2. Tuvas

    AES encryption

    Tuvas, Mar 7, 2006, in forum: Python
    Replies:
    5
    Views:
    408
    Bryan Olson
    Mar 11, 2006
  3. Tobiah
    Replies:
    3
    Views:
    452
    Paul Rubin
    Jan 23, 2007
  4. Danny
    Replies:
    2
    Views:
    2,238
    GodSpeed
    Dec 26, 2010
  5. Nate Wiger

    New AES gem available -- fast-aes

    Nate Wiger, Jan 20, 2010, in forum: Ruby
    Replies:
    3
    Views:
    193
    Pål Bergström
    Jul 1, 2010
Loading...

Share This Page