Mask generation function: Difference between revisions

Content deleted Content added
Example code: update to python 3.10
Example code: also change python 2 to python 3 in demo
Line 60:
=== Example code ===
 
Below is Python2Python3 code implementing MGF1:
 
<syntaxhighlight lang="python">
Line 82:
 
<syntaxhighlight lang="pycon">
Python 23.710.60 (defaulttags/v3.10.0:b494f59, SepOct 94 20142021, 1519:0400:3618) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from mgf1 import mgf1
>>> from binascii import hexlify