CN104679564A - Method for starting application program by browser - Google Patents

Method for starting application program by browser Download PDF

Info

Publication number
CN104679564A
CN104679564A CN201510103090.1A CN201510103090A CN104679564A CN 104679564 A CN104679564 A CN 104679564A CN 201510103090 A CN201510103090 A CN 201510103090A CN 104679564 A CN104679564 A CN 104679564A
Authority
CN
China
Prior art keywords
url
des
browser
application program
custom protocol
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.)
Granted
Application number
CN201510103090.1A
Other languages
Chinese (zh)
Other versions
CN104679564B (en
Inventor
胡开荆
李群巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.
Original Assignee
ZHEJIANG WANPENG NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZHEJIANG WANPENG NETWORK TECHNOLOGY Co Ltd filed Critical ZHEJIANG WANPENG NETWORK TECHNOLOGY Co Ltd
Priority to CN201510103090.1A priority Critical patent/CN104679564B/en
Publication of CN104679564A publication Critical patent/CN104679564A/en
Application granted granted Critical
Publication of CN104679564B publication Critical patent/CN104679564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for starting an application program by a browser. The method comprises the following steps: firstly, generating one URL(Uniform Resource Locator)-1 which can obtain complete startup parameters by Web, encrypting the URL-1 by using a DES (Data Encryption Standard) algorithm to obtain DES-1, calculating the URL-1 by using an MD5 (Message Digest) algorithm to obtain MD5-1, and combining the EDS-1 and the MD5-1 to obtain linking contents; secondly, after a user clicks the linking address, starting a designed agent start program by taking the linking contents as parameters by the browser, segmenting the linking contents into MD5-2 and DES-2, deciphering the DES-2 by using the DES algorithm and marking the deciphered DES-2 as URL-2, calculating the URL-2 by using the MD5 to obtain MD5-3, and comparing the MD5-3 with the MD5-2, if the results are equal, accessing the URL-2 address; thirdly, resolving and obtaining corresponding parameter contents by using a corresponding resolver library through the agent start program. According to the method disclosed by the invention, the maximum parameter limitation allowed by a self-defined protocol is skirted.

Description

A kind of method being started application program by browser
Technical field
The invention belongs to computer desktop application, especially a kind of method being started application program by browser.
Background technology
Along with the develop rapidly of current Web browser, multiple browser kernel and shell are there is, as IE shell+Trident kernel, Firefox shell+Gecko kernel, Chrome shell+Webkit kernel, these browsers are except using the browser of Trident kernel, do not support ActiveX plug-in part technology, and browser is started the important way of application program and undertaken by ActiveX plug-in unit before, for this reason, one is needed to multiple browser and all general start-up technique of kernel.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, provide a kind of method being started application program by browser.
The technical solution adopted for the present invention to solve the technical problems comprises the steps:
Step (1), Web and act on behalf of start-up routine use same key in code, be designated as KEY, Web generates the URL that can obtain complete start-up parameter, be designated as URL-1, URL-1 is used DES algorithm, using KEY as secret key encryption, the encrypted result obtained is designated as DES-1, then MD5 algorithm is used by URL-1 to calculate summary, summary result is designated as MD5-1, encrypted result DES-1 and summary result MD5-1 merging obtain a new character string, this character string is that the linked contents of custom protocol is designated as HREF-1, custom protocol head+HREF-1 is the chained address shown in webpage.
The merging mode of described encrypted result DES-1 and summary result MD5-1 comprises that MD5+DES mode merges, DES+MD5 mode or the staggered mode merged.
Described custom protocol head is the call format of custom protocol, shape such as " vizpower: // " is exactly a custom protocol head, the link started with this character string can be thought custom protocol by browser, and calls corresponding application program, namely calls and acts on behalf of start-up routine.
Step (2), after user clicks the chained address of this custom protocol on its browser, what browser can use linked contents HREF-1 to start that this custom protocol specifies as parameter acts on behalf of start-up routine, act on behalf of start-up routine obtain parameter be shape as " vizpower: // 1234AABB ... " content, after content-data being removed custom protocol head, retain the linked contents HREF-1 in step (1), linked contents HREF-1 is divided into MD5-2 and DES-2, DES-2 uses the deciphering of DES algorithm, decrypted result is designated as URL-2, re-use the summary of MD5 secure processing device encrypts result URL-2, obtain MD5-3, MD5-3 and MD5-2 is compared, if comparative result is equal, then think that URL-2 is correct, then URL-2 address is accessed, thus obtain the design parameter starting application program.
The partitioning scheme of described linked contents HREF-1 is the reverse operation of the merging in step 1.
Step (3), the parameter format got by URL-2 comprise Json form or the ini form of text, conveniently act on behalf of start-up routine and read parameters content, act on behalf of start-up routine use corresponding parsing storehouse to resolve and get corresponding content of parameter, start application program.
Beneficial effect of the present invention is as follows:
The custom protocol standard that the present invention is provided by Windows system, start one by simple URL parameter and act on behalf of start-up routine, act on behalf of start-up routine and get detailed and complete start-up parameter by simple URL parameter to website, finally start application program.Innovative point of the present invention does not directly transmit start-up parameter, by transmitting the mode of URL, having got around the maximum parameter restriction that custom protocol allows, having made this method completely general under various demand.
Embodiment
The invention will be further described below.
Started a method for application program by browser, specifically comprise the steps:
Step (1), Web and act on behalf of start-up routine use same key in code, be designated as KEY, Web generates the URL that can obtain complete start-up parameter, be designated as URL-1, URL-1 is used DES algorithm, using KEY as secret key encryption, the encrypted result obtained is designated as DES-1, then MD5 algorithm is used by URL-1 to calculate summary, summary result is designated as MD5-1, encrypted result DES-1 and summary result MD5-1 merging obtain a new character string, this character string is that the linked contents of custom protocol is designated as HREF-1, custom protocol head+HREF-1 is the chained address shown in webpage.
The merging mode of described encrypted result DES-1 and summary result MD5-1 comprises that MD5+DES mode merges, DES+MD5 mode or the staggered mode merged.
Described custom protocol head is the call format of custom protocol, shape such as " vizpower: // " is exactly a custom protocol head, the link started with this character string can be thought custom protocol by browser, and calls corresponding application program, namely calls and acts on behalf of start-up routine.
Step (2), after user clicks the chained address of this custom protocol on its browser, what browser can use linked contents HREF-1 to start that this custom protocol specifies as parameter acts on behalf of start-up routine, act on behalf of start-up routine obtain parameter be shape as " vizpower: // 1234AABB ... " content, after content-data being removed custom protocol head, retain the linked contents HREF-1 in step (1), linked contents HREF-1 is divided into MD5-2 and DES-2, DES-2 uses the deciphering of DES algorithm, decrypted result is designated as URL-2, re-use the summary of MD5 secure processing device encrypts result URL-2, obtain MD5-3, MD5-3 and MD5-2 is compared, if comparative result is equal, then think that URL-2 is correct, then URL-2 address is accessed, thus obtain the design parameter starting application program.
The partitioning scheme of described linked contents HREF-1 is the reverse operation of the merging in step 1.
Step (3), the parameter format got by URL-2 comprise Json form or the ini form of text, conveniently act on behalf of start-up routine and read parameters content, act on behalf of start-up routine use corresponding parsing storehouse to resolve and get corresponding content of parameter, start application program.

Claims (4)

1. started a method for application program by browser, it is characterized in that comprising the following steps:
Step (1), Web and act on behalf of start-up routine use same key in code, be designated as KEY, Web generates the URL that can obtain complete start-up parameter, be designated as URL-1, URL-1 is used DES algorithm, using KEY as secret key encryption, the encrypted result obtained is designated as DES-1, then MD5 algorithm is used by URL-1 to calculate summary, summary result is designated as MD5-1, encrypted result DES-1 and summary result MD5-1 merging obtain a new character string, this character string is that the linked contents of custom protocol is designated as HREF-1, custom protocol head+HREF-1 is the chained address shown in webpage,
Step (2), after user clicks the chained address of this custom protocol on its browser, what browser can use linked contents HREF-1 to start that this custom protocol specifies as parameter acts on behalf of start-up routine, act on behalf of start-up routine obtain parameter be shape as " vizpower: // 1234AABB ... " content, after content-data being removed custom protocol head, retain the linked contents HREF-1 in step (1), linked contents HREF-1 is divided into MD5-2 and DES-2, DES-2 uses the deciphering of DES algorithm, decrypted result is designated as URL-2, re-use the summary of MD5 secure processing device encrypts result URL-2, obtain MD5-3, MD5-3 and MD5-2 is compared, if comparative result is equal, then think that URL-2 is correct, then URL-2 address is accessed, thus obtain the design parameter starting application program,
Step (3), the parameter format got by URL-2 comprise Json form or the ini form of text, conveniently act on behalf of start-up routine and read parameters content, act on behalf of start-up routine use corresponding parsing storehouse to resolve and get corresponding content of parameter, start application program.
2. a kind ofly as claimed in claim 1 start the method for application program by browser, the merging mode of described encrypted result DES-1 and summary result MD5-1 that it is characterized in that comprise that MD5+DES mode merges, DES+MD5 mode or the staggered mode merged.
3. a kind ofly as claimed in claim 1 start the method for application program by browser, it is characterized in that described custom protocol head is the call format of custom protocol, shape such as " vizpower: // " is exactly a custom protocol head, the link started with this character string can be thought custom protocol by browser, and call corresponding application program, namely call and act on behalf of start-up routine.
4. a kind ofly as claimed in claim 1 start the method for application program by browser, it is characterized in that the partitioning scheme of described linked contents HREF-1 is the reverse operation merging mode in step 1.
CN201510103090.1A 2015-03-09 2015-03-09 A kind of method for starting application program by browser Active CN104679564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510103090.1A CN104679564B (en) 2015-03-09 2015-03-09 A kind of method for starting application program by browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510103090.1A CN104679564B (en) 2015-03-09 2015-03-09 A kind of method for starting application program by browser

Publications (2)

Publication Number Publication Date
CN104679564A true CN104679564A (en) 2015-06-03
CN104679564B CN104679564B (en) 2017-09-26

Family

ID=53314661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510103090.1A Active CN104679564B (en) 2015-03-09 2015-03-09 A kind of method for starting application program by browser

Country Status (1)

Country Link
CN (1) CN104679564B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516208A (en) * 2016-01-28 2016-04-20 邱铭钗 WEB site link dynamic hiding method and device capable of effectively preventing network attacks
CN107257372A (en) * 2017-06-14 2017-10-17 广东省电子商务认证有限公司 A kind of method for supporting a variety of browsers to be communicated with local application
CN107483177A (en) * 2017-07-07 2017-12-15 郑州云海信息技术有限公司 A kind of method and system for verifying encryption device encryption data authenticity
CN108111565A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 Method for message transmission and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416091A (en) * 2002-09-29 2003-05-07 南京仕邦软件有限责任公司 Application system of banking self-help service based on web and operational method
CN101924749A (en) * 2010-01-28 2010-12-22 赵路 System for realizing safe network browsing and method thereof
CN102663049A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for updating search engine web address library
CN104267994A (en) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 Application running device and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416091A (en) * 2002-09-29 2003-05-07 南京仕邦软件有限责任公司 Application system of banking self-help service based on web and operational method
CN101924749A (en) * 2010-01-28 2010-12-22 赵路 System for realizing safe network browsing and method thereof
CN102663049A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for updating search engine web address library
CN104267994A (en) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 Application running device and terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516208A (en) * 2016-01-28 2016-04-20 邱铭钗 WEB site link dynamic hiding method and device capable of effectively preventing network attacks
CN105516208B (en) * 2016-01-28 2018-09-28 邱铭钗 A kind of WEB web site url dynamic hidden methods effectivelying prevent network attack
CN108111565A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 Method for message transmission and device
CN107257372A (en) * 2017-06-14 2017-10-17 广东省电子商务认证有限公司 A kind of method for supporting a variety of browsers to be communicated with local application
CN107483177A (en) * 2017-07-07 2017-12-15 郑州云海信息技术有限公司 A kind of method and system for verifying encryption device encryption data authenticity
CN107483177B (en) * 2017-07-07 2020-10-23 苏州浪潮智能科技有限公司 Method and system for verifying authenticity of encrypted data of encryption equipment

Also Published As

Publication number Publication date
CN104679564B (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN108023874B (en) Single sign-on verification device and method and computer readable storage medium
TWI687113B (en) Method and server for determining whether the terminal logging in to the website is a mobile terminal
US10506428B2 (en) Wireless network connection method, apparatus, and system
EP3000068B1 (en) Protecting data
US9438625B1 (en) Mitigating scripted attacks using dynamic polymorphism
RU2017131844A (en) ADVANCED DIGITAL REQUEST AUTHORIZATION
CN104679564A (en) Method for starting application program by browser
CN106027228B (en) Encryption and decryption method and encryption and decryption system for webpage identifier
CN103414727A (en) Encryption protection system for input password input box and using method thereof
US8887290B1 (en) Method and system for content protection for a browser based content viewer
CN104468698A (en) Cross-browser webpage communication system and method
CN110071937B (en) Login method, system and storage medium based on block chain
CN102194066A (en) Method for taking fingerprint information as key
MY201886A (en) Verification code short message processing method and terminal
CN105282090A (en) Public URL encryption coding method for preventing illegal access on internet
CN113836498A (en) Webpage source code obfuscation method and device, electronic device and storage medium
CN103701586A (en) Method and device for acquiring secret key
WO2019134276A1 (en) Method and system for protecting web page code, storage medium, and electronic device
CN110147653B (en) Application program security reinforcing method and device
CN106101155B (en) Method and device for protecting website
CN105827673B (en) A kind of method, apparatus and network server of door chain
CN105071922A (en) Method of using cryptographic equipment by JAVASCRIPT
CN106612283B (en) Method and device for identifying source of downloaded file
CN111984989A (en) Method, device, system and medium for verifying, issuing and accessing URL (uniform resource locator)
US10102384B2 (en) Digital content execution control mechanism

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: The electronic commerce building, No. 118 Hangzhou West Road, Zhejiang province 310013 city 15 Floor

Applicant after: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.

Address before: The electronic commerce building, No. 118 Hangzhou West Road, Zhejiang province 310013 city 15 Floor

Applicant before: ZHEJIANG WANPENG NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 310051 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK Co.,Ltd.

Address before: The electronic commerce building, No. 118 Hangzhou West Road, Zhejiang province 310013 city 15 Floor

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: Zhejiang Wanpeng Digital Intelligence Technology Co.,Ltd.

Address before: 12 / F, building 8, No. 19, Jugong Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee before: ZHEJIANG WANPENG EDUCATION SCIENCE AND TECHNOLOGY STOCK CO.,LTD.