📄 testscar.sh
字号:
#!/bin/sh## TestScar.sh - run a quick test to see if scar is all there# and basically working.## Dependencies: CLASSPATH must be se to find all classes needed.#set -xvarg="v"# done in place, and locally for now as scar does not handle absolute# pathnames well, and cd'ing might change the nature of the CLASSPATH# cd /tmptmp=.scar$$trap "rm -rf ${tmp}in ${tmp}out ${tmp}archive" 0## Make a toy directory.#mkdir ${tmp}in ${tmp}outecho 1111111111111 > ${tmp}in/oneecho 2222222222222 > ${tmp}in/twoecho 3333333333333 > ${tmp}in/three## Archive it, extract it, and compare the extraction with the original.#java cryptix.tools.Scar -e${varg}r -p "test" ${tmp}in ${tmp}archive[ $? -ne 0 ] && echo Scar encrypt failed $? && exit 1java cryptix.tools.Scar -d${varg} -p "test" ${tmp}archive ${tmp}out[ $? -ne 0 ] && echo Scar decrypt failed $? && exit 1for file in ${tmp}in/*do cmp ${file} ${tmp}out/${file##*/} || exit 1doneexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -