Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ic:laboratoare:05 [2020/11/04 13:55]
philip.dumitru [Laboratorul 05 - DES]
ic:laboratoare:05 [2020/11/04 14:00] (current)
philip.dumitru [Exercise 3 (5p)]
Line 187: Line 187:
         The bytestring ciphertext c         The bytestring ciphertext c
     """​     """​
-    d = DES.new(k)+    d = DES.new(k, DES.MODE_ECB)
     c = d.encrypt(m)     c = d.encrypt(m)
     return c     return c
Line 207: Line 207:
         The bytestring plaintext m         The bytestring plaintext m
     """​     """​
-    d = DES.new(k)+    d = DES.new(k, DES.MODE_ECB)
     m = d.decrypt(c)     m = d.decrypt(c)
     return m     return m
ic/laboratoare/05.1604490956.txt.gz · Last modified: 2020/11/04 13:55 by philip.dumitru
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0