Skip to content

m1gnus/DES-python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DES-python3

an implementation of DES algorithm in python3

Positional Parameters

-k [KEY] -> the key must be of length 8 bytes, so 8 chars or 16 hex digits (if -x is set)

-p [PLAIN] -> plaintext

-c [CIPHER] -> ciphertext

-m [MODE] -> mode of operation (ECB, CBC, OFB, CFB, CTR)

-i [IV] -> initialization vector... not required in ECB mode

-x -> if set all inputs will be read as hex values

-P -> add 8 bytes of padding to plaintext before the encryption

-I -> pad IV if it's less than 8 bytes

-r -> raw output

About

an implementation of DES algorithm in python3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages