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 in Cyber Security & Ethical Hacking by Ahmed
• 310 points
163 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
0 votes
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 in Cyber Security & Ethical Hacking by Priyaj
• 56,960 points
91 views
+1 vote
1 answer

Not able to use nmap in python.

nmap module doesn’t have PortScanner attribute. The ...READ MORE

answered Jan 28 in Cyber Security & Ethical Hacking by Omkar
• 68,180 points
117 views
0 votes
1 answer

How to find IP address of nodes in my network?

The IP address of the nodes connected ...READ MORE

answered Feb 9 in Cyber Security & Ethical Hacking by Omkar
• 68,180 points
71 views
0 votes
1 answer

How to find MAC address using IP address?

To find the MAC address, run this ...READ MORE

answered Feb 9 in Cyber Security & Ethical Hacking by Omkar
• 68,180 points
97 views
+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 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 399 views