crash.software
Projects
Pull Requests
Issues
Builds
DonPAPI
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
DonPAPI
Files
🤬
Sign In
v1.0.0
ROOT
/
lazagne
/
config
/
crypto
/
pyDes.py
Search
History
853 lines
|
ISO-8859-1
|
31 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
sys
ECB
CBC
PAD_NORMAL
PAD_PKCS5
_baseDes
(object)
block_size
_mode
_iv
_padding
_padmode
__key
__init__
(self,mode=ECB,IV=None,pad=None,padmode=PAD_NORMAL)
getKey
(self)
setKey
(self,key)
getMode
(self)
setMode
(self,mode)
getPadding
(self)
setPadding
(self,pad)
getPadMode
(self)
setPadMode
(self,mode)
getIV
(self)
setIV
(self,IV)
_padData
(self,data,pad,padmode)
_unpadData
(self,data,pad,padmode)
_guardAgainstUnicode
(self,data)
des
(_baseDes)
__pc1
__left_rotations
__pc2
__ip
__expansion_table
__sbox
__p
__fp
ENCRYPT
DECRYPT
key_size
L
R
Kn
final
__init__
(self,key,mode=ECB,IV=None,pad=None,padmode=PAD_NORMAL)
setKey
(self,key)
__String_to_BitList
(self,data)
__BitList_to_String
(self,data)
__permutate
(self,table,block)
__create_sub_keys
(self)
__des_crypt
(self,block,crypt_type)
crypt
(self,data,crypt_type)
encrypt
(self,data,pad=None,padmode=None)
decrypt
(self,data,pad=None,padmode=None)
triple_des
(_baseDes)
key_size
_iv
__key1
__key2
__key3
__init__
(self,key,mode=ECB,IV=None,pad=None,padmode=PAD_NORMAL)
setKey
(self,key)
setMode
(self,mode)
setPadding
(self,pad)
setPadMode
(self,mode)
setIV
(self,IV)
encrypt
(self,data,pad=None,padmode=None)
decrypt
(self,data,pad=None,padmode=None)
All occurrences
Please wait...
Page is in error, reload to recover