This morning I analyzed the S-DESAlgorithmThe general process, because the residential area has a power outage, so it is just a simple analysis. The implementation is written this evening.
With the process of des analysis, the analysis and implementation of S-DES are much simpler. So that the flow chart is directly written. At that time, I chatted with my classmates and knocked onCodeThinking: I am too stupid, so now I have learned to look at the flowchart to writeProgramI am very ashamed of myself.
The class structure is basically the same as that of DES, but the key generation part is extracted separately, which makes me more intuitive.
S_des: an external interface called by others.
Keymanager: Key Management class used to generate sub-Keys.
S_desfunction: the basic method class. The necessary conditions for encryption and decryption are also the decomposition of the entire encryption and decryption process.
Iconst: replace constants.
Okay,Source codeI will not post the code after downloading it myself.
Source code: http://u.115.com/file/f4e9d3b21 (valid for 30 days, if expired please prompt me, Thank you)
The project is still developed using eclipse. You can import it directly to eclipse for experiments.
I almost forgot to write the reference document "sdes Algorithm Analysis and Implementation". In addition, I would like to thank the soldiers for their support and provide the link: Go to the bing blog