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,355 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
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 676 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
8,058 views
+1 vote
1 answer
0 votes
1 answer

How can I ping my default gateway?

Using the following command you can find ...READ MORE

answered Mar 22, 2019 in Cyber Security & Ethical Hacking by Priyaj
• 58,090 points
17,540 views
0 votes
1 answer

How python is used in ethical hacking?

It is common practice amongst ethical hackers ...READ MORE

answered Feb 3, 2020 in Cyber Security & Ethical Hacking by anonymous
• 59,230 points

edited Oct 7, 2021 by Sarfaraz 923 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,067 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