Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python DES

from Crypto.Cipher import DES
from Crypto import Random
iv = Random.get_random_bytes(8)
des1 = DES.new('01234567', DES.MODE_CFB, iv)
des2 = DES.new('01234567', DES.MODE_CFB, iv)
text = 'Good Morning'
cipher_text = des1.encrypt(text)
print("Encrpted message ",cipher_text) 
print("Decrypted Original Message: ",(des2.decrypt(cipher_text)))
Comment

PREVIOUS NEXT
Code Example
Python :: Socket Programming Client Side 
Python :: remove all zeros from list python 
Python :: how to convert an image to matrix in python 
Python :: numpy arrays equality 
Python :: polyfit python 
Python :: read csv exclude index pandas 
Python :: pyspark groupby sum 
Python :: python how to make something run once 
Python :: pygame.key.get_pressed() 
Python :: The following code shows how to reset the index of the DataFrame and drop the old index completely: 
Python :: add role discord .py 
Python :: show all rows python 
Python :: read pickle file python 
Python :: how to check if index is out of range python 
Python :: google colab how to upload a folder 
Python :: solve equation python 
Python :: copy a file from one directroy to other using python 
Python :: django rest framework simple jwt 
Python :: pd add column with zeros 
Python :: python check string case insensitive 
Python :: how to sort dictionary in python by value 
Python :: python program to count vowels in a string 
Python :: python pandas series to dataframe 
Python :: pandas convert date to quarter 
Python :: python filter list of dictionaries by value 
Python :: os listdir sort by date 
Python :: rsplit string from last 
Python :: pandas remove item from dictionary 
Python :: pandas shift columns down until value 
Python :: python close browser 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =