You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
547 B
23 lines
547 B
#- coding:utf-8 -*-
|
|
import melon
|
|
import sys
|
|
import os
|
|
import traceback
|
|
|
|
class CryptApp():
|
|
|
|
def __init__(self,input_name,output_name):
|
|
input_name = input_name.strip()
|
|
self.input_name = input_name
|
|
if output_name.endswith('.dat'):
|
|
self.output_name = output_name
|
|
else:
|
|
print 'output_file type is error'
|
|
sys.exit(1)
|
|
|
|
|
|
def encrypt_app(self):
|
|
try:
|
|
melon.encrypt(self.input_name,self.output_name)
|
|
except Exception,e:
|
|
traceback.print_exc()
|
|
|