How can I encryption decryption in Rijndael using python

+1 vote
I found this https://github.com/moeenz/rijndael ,but does not helpful and I want encrypt in mode CFB

   
    import rijndael
    from rijndael.cipher.crypt import new
    from rijndael.cipher.blockcipher import MODE_CBC

    # when i change the CBC mode to CFB does not work!
    
    KEY = ('fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0')
    IV = ('000102030405060708090a0b0c0d0e0f')
    BLOCKSIZE = 32
    rjn = new(KEY, MODE_CBC, IV, blocksize=BLOCKSIZE)
    encd = rjn.encrypt('A padded string to BLOCKSIZE length.')

    rjn = new(KEY, MODE_CBC, IV, blocksize=BLOCKSIZE)
    decd = rjn.decrypt('A padded string to BLOCKSIZE length.')
Sep 28, 2019 in Cyber Security & Ethical Hacking by Ahmed
• 310 points
4,954 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Cyber Security & Ethical Hacking

0 votes
1 answer
0 votes
0 answers

I do not have a real result about encryption file use AES mode CFB in pycrptodome on python

I'm using Ubuntu win. on python I ...READ MORE

Aug 23, 2019 in Cyber Security & Ethical Hacking by Ahmed
• 310 points

closed Aug 23, 2019 by Ahmed 895 views
0 votes
1 answer

How can I change IP in Android emulator

Here's the six step you need to ...READ MORE

answered Feb 24, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
9,724 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,454 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP