今天 测试了一下,很好用
- ;;解密
- (defun C:a6 (/ FILE FN1 FN2 STR1)
- (setq file (findfile "d:\\0000\\99E11-1.txt"))
- (setq fn1 (open file "r"))
- (setq file "d:\\0000\\99E11-1.pdf")
- (setq fn2 (open file "w"))
- (setq str1 (syz-read-bin 64000000 fn1))
- (syz-write-bin str1 fn2)
- (close fn1)
- (close fn2)
- (princ)
- )
- ;;加密
- (defun C:a7(/ FILE FN1 FN2 STR1)
- (setq file (findfile "d:\\0000\\99E11-1.pdf"))
- (setq fn1 (open file "r"))
- (setq file "d:\\0000\\99E11-1.txt")
- (setq fn2 (open file "w"))
- (setq str1 (syz-read-bin 64000000 fn1))
- (syz-write-bin str1 fn2)
- (close fn1)
- (close fn2)
- (princ)
- )
|