⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aesscript.jcsh

📁 完整的加密算法程序源代码
💻 JCSH
字号:
## Package:     AesJcop# Filename:    aesscript.jcsh# Scriptname:  aesscript# Date:        24.09.2003 18:53:35## continue with script even in case of errors/mode continuous=${CONTINUOUS_MODE}# trace APDUs sent and received /mode trace=${TRACE_MODE}# # This script first installs a Sample6 applet, personalizes it# with a DES-key which can be used to calculate signatures# on incoming APDUs.### Open terminal, conect and authenticate to card#/terminal ${CURR_TERM}/atr/card## set the keys: the IDE does that too when authenticating to the card#set-key ${CURRKEYS}## init-update, external authenticate with the keys defined before#init-update 255ext-auth## or use auth as in the appletsample# auth## delete previously installed applet and package. this might fail.# with continous-mode off, the shell-script will terminate on error#/mode continuous=ondelete ${CURR_INST_AID_0_0}delete ${CURR_PKG_AID}/mode continuous=${CONTINUOUS_MODE}## download cap-file again, -c means component for component #upload -b 128 -c "${CURR_CAP_FILE}"## and install applet #install -i ${CURR_INST_AID_0_0} ${CURR_PKG_AID} ${CURR_APP_AID_0}## show card contents#card-info# select AesJcop/select ${CURR_INST_AID_0_0}# init S- and T-Boxes for encryption, keylength 16, use key 000102030405060708090a0b0c0d0e0f/send 0000010000# encrypt 16 bytes: 000102030405060708090a0b0c0d0e0f/send 00020000#(000102030405060708090a0b0c0d0e0f)# init T-Boxes for decryption/send 0000040000# decrypt/send 00040000#(0A940BB5416EF045F1C39458C653EA5A)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -