modes for AES encryption?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Curvey

    #1

    modes for AES encryption?

    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

    #2
    Re: modes for AES encryption?

    Chris Curvey wrote:[color=blue]
    > 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?[/color]

    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).

    Comment

    Working...