1 Star 1 Fork 19

杜润泽 / e23-file-check

forked from e23-cn / e23-file-check 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
test_check.py 600 Bytes
Copy Edit Web IDE Raw Blame History
walkskyer authored 2016-08-18 09:32 . init
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from util import sign
import os
if __name__ == '__main__':
origin_file = 'test-file/original.html'
target_file = 'test-file/original-sign.html'
target_file = 'target-file/original.html'
sign_val = sign.sign_file(origin_file)
print sign_val
sign.sign2file(sign_val, origin_file, target_file)
filename = os.path.basename(target_file)
f = open(target_file)
content = f.read()
f.close()
sign_str, sign_ret = sign.retrieve_sign(content)
print sign_str
print sign_ret
print sign.sign_check(target_file)

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/du-runze/e23-file-check.git
git@gitee.com:du-runze/e23-file-check.git
du-runze
e23-file-check
e23-file-check
master

Search