CN103116729B - A kind of portable device data derives method and system automatically - Google Patents
A kind of portable device data derives method and system automatically Download PDFInfo
- Publication number
- CN103116729B CN103116729B CN201310013838.XA CN201310013838A CN103116729B CN 103116729 B CN103116729 B CN 103116729B CN 201310013838 A CN201310013838 A CN 201310013838A CN 103116729 B CN103116729 B CN 103116729B
- Authority
- CN
- China
- Prior art keywords
- check code
- storage device
- verification file
- movable storage
- portable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000012795 verification Methods 0.000 claims abstract description 75
- 238000001514 detection method Methods 0.000 claims abstract 2
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000012790 confirmation Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Storage Device Security (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机应用领域,特别涉及一种便携设备数据自动导出方法及系统。The invention relates to the field of computer applications, in particular to a method and system for automatically deriving data from a portable device.
背景技术Background technique
便携设备的存储器中存放有各种用户所需数据,为了将存放在便携设备内的数据导出到外部移动存储设备中,例如常见的U盘或移动硬盘中。Various user-required data are stored in the memory of the portable device, in order to export the data stored in the portable device to an external mobile storage device, such as a common U disk or a mobile hard disk.
但是,在一些缺少显示终端或调试设备的场合,或是不方便携带显示终端和调试设备的情况下,如何将存放在便携设备内的所需数据复制出来便成为了一个难题。However, in some occasions where there is no display terminal or debugging equipment, or it is inconvenient to carry the display terminal and debugging equipment, how to copy the required data stored in the portable device has become a difficult problem.
发明内容Contents of the invention
本发明要解决的问题在于,提供一种便携设备数据自动导出方法及系统,能够在缺少显示终端或调试设备的情况下,把用户所需的存放在便携设备中的数据自动导出到移动存储设备中。The problem to be solved by the present invention is to provide a portable device data automatic export method and system, which can automatically export the data stored in the portable device required by the user to the mobile storage device in the absence of a display terminal or debugging device middle.
为解决上述问题,本发明采用的一个技术方案是:In order to solve the above problems, a technical solution adopted in the present invention is:
提供一种便携设备数据自动导出方法,包括:S1、检测便携设备的挂载配置文件,获取至少一个移动存储设备在挂载配置文件中的挂载目录;S2、搜索所述挂载目录中是否存在预设校验文件名;S3、当确定存在所述预设校验文件名时,利用加密算法对移动存储设备中与所述预设校验文件名对应的校验文件进行处理得到校验码;S4、将该校验码与便携设备预设校验码进行比对并判断是否一致;S5、当判定所述校验码与预设校验码一致时,将数据从便携设备的存储单元中导出到移动存储设备。A method for automatically exporting data of a portable device is provided, including: S1. Detecting a mounting configuration file of a portable device, and obtaining a mounting directory of at least one mobile storage device in the mounting configuration file; S2. Searching whether the mounting directory contains There is a preset verification file name; S3. When it is determined that the preset verification file name exists, use an encryption algorithm to process the verification file corresponding to the preset verification file name in the mobile storage device to obtain verification code; S4, comparing the check code with the preset check code of the portable device and judging whether they are consistent; S5, when it is determined that the check code is consistent with the preset check code, the data is stored in the portable device unit to a removable storage device.
其中,所述步骤S2后还包括:当确定不存在所述预设校验文件名时将移动存储设备从便携设备卸载并返回步骤S1。Wherein, after the step S2, it further includes: when it is determined that the preset verification file name does not exist, uninstall the mobile storage device from the portable device and return to step S1.
其中,所述步骤S4后还包括:当判定所述校验码与预设校验码不一致时将移动存储设备从便携设备卸载并返回步骤S1。Wherein, after the step S4, it further includes: uninstalling the mobile storage device from the portable device and returning to step S1 when it is determined that the check code is inconsistent with the preset check code.
其中,所述加密算法是MD5算法,所述校验码是MD5校验码。Wherein, the encryption algorithm is an MD5 algorithm, and the check code is an MD5 check code.
其中,所述校验文件为只读状态文本格式。Wherein, the verification file is in a read-only state text format.
本发明采用的另一个技术方案是:Another technical scheme that the present invention adopts is:
提供一种便携设备数据自动导出系统,包括便携设备以及至少一个挂载在便携设备的移动存储设备,所述便携设备包括用于存储数据的存储单元以及处理单元,所述存储单元还存储有预设校验码,所述移动存储设备中存储有校验文件,所述处理单元包括:挂载目录获取模块,用于检测便携设备的挂载配置文件,获取至少一个移动存储设备在挂载配置文件中的挂载目录;校验文件搜索模块,用于搜索所述挂载目录中是否存在预设校验文件名;校验码生成模块,用于当所述校验文件搜索模块确定存在预设校验文件名时,利用加密算法对移动存储设备中与所述预设校验文件名对应的校验文件进行处理得到校验码;合法判定模块,用于将该校验码与便携设备预设校验码进行比对并判断是否一致;数据导出模块,用于当所述合法判定模块判定所述校验码与预设校验码一致时,将数据从便携设备的存储单元中导出到移动存储设备。A portable device data automatic export system is provided, including a portable device and at least one mobile storage device mounted on the portable device, the portable device includes a storage unit for storing data and a processing unit, and the storage unit also stores preset A verification code is set, a verification file is stored in the mobile storage device, and the processing unit includes: a mounting directory acquisition module, which is used to detect the mounting configuration file of the portable device, and obtain at least one mobile storage device in the mounting configuration file. The mounting directory in the file; the verification file search module is used to search whether there is a preset verification file name in the mounting directory; the verification code generation module is used for when the verification file search module determines that there is a preset verification file name; When the verification file name is set, an encryption algorithm is used to process the verification file corresponding to the preset verification file name in the mobile storage device to obtain a verification code; the legal determination module is used to compare the verification code with the portable device The preset check code is compared and judged whether it is consistent; the data export module is used to export the data from the storage unit of the portable device when the legal determination module determines that the check code is consistent with the preset check code to a removable storage device.
其中,所述处理单元还包括卸载模块,用于当校验文件搜索模块确定不存在所述预设校验文件名时将移动存储设备从便携设备卸载。Wherein, the processing unit further includes an uninstall module, configured to uninstall the mobile storage device from the portable device when the verification file search module determines that the preset verification file name does not exist.
其中,所述处理单元还包括卸载模块,用于当合法判定模块判定所述校验码与预设校验码不一致时将移动存储设备从便携设备卸载。Wherein, the processing unit further includes an unloading module, configured to unload the mobile storage device from the portable device when the legal determination module determines that the verification code is inconsistent with the preset verification code.
其中,所述加密算法是MD5算法,所述校验码是MD5校验码。Wherein, the encryption algorithm is an MD5 algorithm, and the check code is an MD5 check code.
其中,所述校验文件为只读状态文本格式。Wherein, the verification file is in a read-only state text format.
本发明的便携设备数据自动导出方法及系统,通过检测移动存储设备中是否存在与预设校验文件名匹配的校验文件,以及将匹配的校验文件加密得到校验码,并且进一步比对校验码是否与预设校验码一致来确认移动存储设备的访问权限,从而能够在缺少显示终端或调试设备的情况下,把用户存放在便携设备中的数据自动导出到具有权限的移动存储设备中。The method and system for automatically exporting portable device data of the present invention detects whether there is a verification file matching the preset verification file name in the mobile storage device, and encrypts the matching verification file to obtain a verification code, and further compares Whether the check code is consistent with the preset check code is used to confirm the access rights of the mobile storage device, so that in the absence of a display terminal or debugging device, the data stored in the portable device by the user can be automatically exported to the mobile storage with permission in the device.
附图说明Description of drawings
图1是本发明一实施方式中一种便携设备数据自动导出系统的整体框图;1 is an overall block diagram of a portable device data automatic export system in an embodiment of the present invention;
图2是本发明一实施方式中一种便携设备数据自动导出方法的流程图。Fig. 2 is a flowchart of a method for automatically exporting data from a portable device in an embodiment of the present invention.
主要元件符号说明Explanation of main component symbols
便携设备10;移动存储设备20;存储单元11;处理单元12;挂载目录获取模块121;校验文件搜索模块122;校验码生成模块123;合法判定模块124;数据导出模块125;卸载模块126。Portable device 10; mobile storage device 20; storage unit 11; processing unit 12; mount directory acquisition module 121; verification file search module 122; verification code generation module 123; legal determination module 124; data export module 125; 126.
具体实施方式detailed description
为详细说明本发明的技术内容、构造特征、所实现目的及效果,以下结合实施方式并配合附图详予说明。In order to describe the technical content, structural features, achieved goals and effects of the present invention in detail, the following will be described in detail in conjunction with the embodiments and accompanying drawings.
请一并参阅图1、是本发明一实施方式中一种便携设备数据自动导出系统的整体框图。一种便携设备数据自动导出系统包括便携设备10以及至少一个挂载在便携设备10的移动存储设备20,所述便携设备10包括用于存储数据的存储单元11以及处理单元12,所述存储单元11还存储有预设校验码,所述移动存储设备20中存储有校验文件,在本实施方式中,所述校验文件为只读状态文本格式。Please also refer to FIG. 1 , which is an overall block diagram of a portable device data automatic export system in an embodiment of the present invention. A portable device data automatic export system includes a portable device 10 and at least one mobile storage device 20 mounted on the portable device 10, the portable device 10 includes a storage unit 11 and a processing unit 12 for storing data, the storage unit 11 also stores a preset check code, and the mobile storage device 20 stores a check file. In this embodiment, the check file is in a read-only text format.
所述处理单元12包括挂载目录获取模块121、校验文件搜索模块122、校验码生成模块123、合法判定模块124、数据导出模块125。挂载目录获取模块121用于检测便携设备的挂载配置文件,获取至少一个移动存储设备20在挂载配置文件中的挂载目录。校验文件搜索模块122用于搜索所述挂载目录中是否存在预设校验文件名。校验码生成模块123用于当所述校验文件搜索模块122确定存在预设校验文件名时,利用加密算法对移动存储设备20中与所述预设校验文件名对应的校验文件进行处理得到校验码,在本实施方式中,所述加密算法是MD5算法,所述校验码是MD5校验码。合法判定模块124用于将该校验码与便携设备10的存储单元11中的预设校验码进行比对并判断是否一致。数据导出模块125用于当所述合法判定模块124判定所述校验码与预设校验码一致时,将数据从便携设备10的存储单元11中导出到移动存储设备20。The processing unit 12 includes a mounting directory acquisition module 121 , a verification file search module 122 , a verification code generation module 123 , a legal determination module 124 , and a data export module 125 . The mounting directory acquisition module 121 is configured to detect the mounting configuration file of the portable device, and obtain the mounting directory of at least one mobile storage device 20 in the mounting configuration file. The verification file search module 122 is used to search whether there is a preset verification file name in the mounting directory. The verification code generation module 123 is used for when the verification file search module 122 determines that there is a preset verification file name, use an encryption algorithm to perform a check on the verification file corresponding to the preset verification file name in the mobile storage device 20 Processing is performed to obtain a check code. In this embodiment, the encryption algorithm is an MD5 algorithm, and the check code is an MD5 check code. The legal determination module 124 is used to compare the check code with the preset check code in the storage unit 11 of the portable device 10 and determine whether they are consistent. The data exporting module 125 is used for exporting data from the storage unit 11 of the portable device 10 to the mobile storage device 20 when the legality determining module 124 determines that the verification code is consistent with the preset verification code.
所述处理单元12还包括卸载模块126,用于当校验文件搜索模块122确定不存在所述预设校验文件名时将移动存储设备20从便携设备10卸载。所述卸载模块126还用于当合法判定模块124判定所述校验码与预设校验码不一致时将移动存储设备20从便携设备10卸载。The processing unit 12 further includes an uninstall module 126, configured to uninstall the mobile storage device 20 from the portable device 10 when the verification file search module 122 determines that the preset verification file name does not exist. The uninstallation module 126 is also configured to uninstall the mobile storage device 20 from the portable device 10 when the legality determination module 124 determines that the verification code is inconsistent with the preset verification code.
请参阅图2,是本发明一实施方式中一种便携设备数据自动导出方法的流程图。一种便携设备数据自动导出方法,运行于上述便携设备数据自动导出系统中,包括:Please refer to FIG. 2 , which is a flow chart of a method for automatically exporting data from a portable device in an embodiment of the present invention. A method for automatically exporting data from a portable device, running in the above-mentioned system for automatically exporting data from a portable device, comprising:
步骤S1、检测便携设备的挂载配置文件,获取至少一个移动存储设备在挂载配置文件中的挂载目录;Step S1, detecting the mounting configuration file of the portable device, and obtaining the mounting directory of at least one mobile storage device in the mounting configuration file;
步骤S2、搜索所述挂载目录中是否存在预设校验文件名;Step S2, searching whether there is a preset verification file name in the mounting directory;
步骤S3、当确定存在所述预设校验文件名时,利用加密算法对移动存储设备中与所述预设校验文件名对应的校验文件进行处理得到校验码,在本实施方式中,所述加密算法是MD5算法,所述校验码是MD5校验码,所述校验文件为只读状态文本格式;Step S3. When it is determined that the preset verification file name exists, use an encryption algorithm to process the verification file corresponding to the preset verification file name in the mobile storage device to obtain a verification code. In this embodiment , the encryption algorithm is an MD5 algorithm, the check code is an MD5 check code, and the check file is in a read-only state text format;
步骤S4、将该校验码与便携设备预设校验码进行比对并判断是否一致;Step S4, comparing the check code with the preset check code of the portable device and judging whether they are consistent;
步骤S5、当判定所述校验码与预设校验码一致时,将数据从便携设备的存储单元中导出到移动存储设备。Step S5, when it is determined that the check code is consistent with the preset check code, export the data from the storage unit of the portable device to the mobile storage device.
其中,所述步骤S2后还包括:当确定不存在所述预设校验文件名时将移动存储设备从便携设备卸载并返回步骤S1。Wherein, after the step S2, it further includes: when it is determined that the preset verification file name does not exist, uninstall the mobile storage device from the portable device and return to step S1.
其中,所述步骤S4后还包括:当判定所述校验码与预设校验码不一致时将移动存储设备从便携设备卸载并返回步骤S1。Wherein, after the step S4, it further includes: uninstalling the mobile storage device from the portable device and returning to step S1 when it is determined that the check code is inconsistent with the preset check code.
本发明的便携设备数据自动导出方法及系统,通过检测移动存储设备中是否存在与预设校验文件名匹配的校验文件,以及将匹配的校验文件加密得到校验码,并且进一步比对校验码与预设校验码是否一致来确认移动存储设备的访问权限,从而能够在缺少显示终端或调试设备的情况下,把用户存放在便携设备中的数据自动导出到具有权限的移动存储设备中。The method and system for automatically exporting portable device data of the present invention detects whether there is a verification file matching the preset verification file name in the mobile storage device, and encrypts the matching verification file to obtain a verification code, and further compares Check whether the check code is consistent with the preset check code to confirm the access rights of the mobile storage device, so that in the absence of a display terminal or debugging device, the data stored in the portable device by the user can be automatically exported to the mobile storage with permission in the device.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310013838.XA CN103116729B (en) | 2013-01-15 | 2013-01-15 | A kind of portable device data derives method and system automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310013838.XA CN103116729B (en) | 2013-01-15 | 2013-01-15 | A kind of portable device data derives method and system automatically |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103116729A CN103116729A (en) | 2013-05-22 |
CN103116729B true CN103116729B (en) | 2016-02-03 |
Family
ID=48415102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310013838.XA Expired - Fee Related CN103116729B (en) | 2013-01-15 | 2013-01-15 | A kind of portable device data derives method and system automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103116729B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298933B (en) * | 2014-10-17 | 2018-02-06 | 浪潮(北京)电子信息产业有限公司 | A kind of configuration information safe processing method and system |
CN105426203A (en) * | 2015-11-04 | 2016-03-23 | 福建星海通信科技有限公司 | Rapid function configuration method of vehicle terminal |
CN107580232A (en) * | 2017-09-28 | 2018-01-12 | 郑州云海信息技术有限公司 | A live video system and method |
CN111083001B (en) * | 2018-10-18 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | Firmware abnormity detection method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2777616Y (en) * | 2004-12-20 | 2006-05-03 | 上海北大方正科技电脑系统有限公司 | Computer encryption structure |
CN101051912A (en) * | 2006-04-05 | 2007-10-10 | 迈世亚(北京)科技有限公司 | Data automatic updating method |
CN102314512A (en) * | 2011-09-16 | 2012-01-11 | 北京理工大学 | Synchronous storage system and method of data file based on Bluetooth technology |
-
2013
- 2013-01-15 CN CN201310013838.XA patent/CN103116729B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2777616Y (en) * | 2004-12-20 | 2006-05-03 | 上海北大方正科技电脑系统有限公司 | Computer encryption structure |
CN101051912A (en) * | 2006-04-05 | 2007-10-10 | 迈世亚(北京)科技有限公司 | Data automatic updating method |
CN102314512A (en) * | 2011-09-16 | 2012-01-11 | 北京理工大学 | Synchronous storage system and method of data file based on Bluetooth technology |
Also Published As
Publication number | Publication date |
---|---|
CN103116729A (en) | 2013-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8661306B2 (en) | Baseboard management controller and memory error detection method of computing device utilized thereby | |
KR20150103376A (en) | Continuation of trust for platform boot firmware | |
US9823945B2 (en) | Method and apparatus for managing application program | |
CN103116729B (en) | A kind of portable device data derives method and system automatically | |
US20140195794A1 (en) | Electronic device with baseboard management controller updating system | |
CN102087604A (en) | Computer and method for acquiring hardware configuration information | |
CN107622200A (en) | The safety detecting method and device of application program | |
US11061803B2 (en) | Checking system, checking method and compiling method of system start-up file | |
WO2016107343A1 (en) | Detection method and device for application privacy security information | |
CN103955372B (en) | Method and device for detecting resources in mobile terminal | |
CN101568105B (en) | Mobile phone access system and related storage device thereof | |
US9201576B2 (en) | Display method and portable device | |
CN103164492A (en) | File copying method between electronic devices and electronic devices | |
CN104461622A (en) | system updating method and device of intelligent terminal | |
TWI619015B (en) | Memory controller and memory control method | |
US20150363712A1 (en) | Systems and methods for distinguishing information handling system provider-supported information handling resource via system license | |
US20150067192A1 (en) | System and method for adjusting sas addresses of sas expanders | |
CN108733474A (en) | Switching method and device, mobile terminal equipment and readable storage medium | |
US20130159688A1 (en) | Electronic device and method of setting removal policy of usb device | |
CN104503881B (en) | The method of handheld device consumption detection, device and handheld device | |
CN106778255A (en) | Credible performing environment isolation detection method and device based on internal memory traversal | |
US20150059000A1 (en) | Method and electronic device for protecting data | |
WO2018095045A1 (en) | Method and apparatus for processing information, and electronic device | |
CN102880402A (en) | Method and system for unlocking mobile terminal | |
US20130227226A1 (en) | Electronic device and method for data backup |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160203 |
|
CF01 | Termination of patent right due to non-payment of annual fee |