现在的位置: 首页 > 综合 > 正文

Snooper taoism版中已经实现的可由用户自定义的辅助计算功能示例

2014年01月18日 ⁄ 综合 ⁄ 共 1137字 ⁄ 字号 评论关闭

编辑一个文件,内容如下,存储为文本文件

 

 static static_key = "Key" position = 0% width = 100% height = 1
 crlf
 
 edit key filename = "des_aes_calc_key" position = 0% width = 100% height = 3
 crlf

 static static_icv = "ICV" position = 0% width = 100% height = 1
 crlf
 
 edit icv filename = "des_aes_calc_icv" position = 0% width = 100% height = 3
 crlf

 static static_input = "Input" position = 0% width = 100% height = 1
 crlf
 edit input filename = "des_aes_calc_input" position = 0% width = 100% height = 3
 crlf

 static static_output = "Output" position = 0% width = 100% height = 1
 crlf
 edit output filename = "des_aes_calc_output" position = 0% width = 100% height = 3
 crlf

 

 static static_des_ecb = "des ecb mode" position = 0% width = 100% height = 1
 crlf

 button des_encode_ecb = "des_encode_ecb" position = 0% width = 30% height = 1
 button 3des_encode_ecb = "3des_encode_ecb" position = 33% width = 30% height = 1
 button 3des24k_encode_ecb = "3des24k_encode_ecb" position = 66% width = 30% height = 1
 crlf
 

 
 function des_encode_ecb
  output = des_encode_ecb( $input, $key )
 end function
 
 function 3des_encode_ecb
  output = 3des_encode_ecb( $input, $key )
 end function
 
 function 3des24k_encode_ecb
  output = 3des24k_encode_ecb( $input, $key )
 end function

 

然后使用snooper taoism的通用计算工具中打开这个文件,即可呈现所述控件,并可进行相应计算。

 

使用者可将常用计算方法组合并存储,以方便将来的使用。

 

 

抱歉!评论已关闭.