WO2013143379A1 - 一种基于微博的文档文件共享方法和装置 - Google Patents

一种基于微博的文档文件共享方法和装置 Download PDF

Info

Publication number
WO2013143379A1
WO2013143379A1 PCT/CN2013/072242 CN2013072242W WO2013143379A1 WO 2013143379 A1 WO2013143379 A1 WO 2013143379A1 CN 2013072242 W CN2013072242 W CN 2013072242W WO 2013143379 A1 WO2013143379 A1 WO 2013143379A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
swf
microblog
platform
format
Prior art date
Application number
PCT/CN2013/072242
Other languages
English (en)
French (fr)
Inventor
邱明丰
王巨宏
陈政产
张文浩
周芝芝
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to KR1020147002299A priority Critical patent/KR101541659B1/ko
Priority to JP2014521944A priority patent/JP5747128B2/ja
Publication of WO2013143379A1 publication Critical patent/WO2013143379A1/zh
Priority to US14/171,341 priority patent/US9465779B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • Embodiments of the present invention relate to the field of microblogging technologies, and more particularly, to a microblog-based document file sharing method and apparatus. Background technique
  • Weibo short for MicroBlog, is a platform for information sharing, dissemination and acquisition based on user relationships. Through the platform, users can apply WEB, WAP and various client components to update information in 140 words or so and share it instantly.
  • Weibo Compared with blogs that emphasize layout, the content composition of Weibo is composed of simple words. From this perspective, the technical requirements for users are very low, and there is no blog in the organization of language.
  • the various APIs opened by Weibo enable a large number of users to instantly update their personal information through mobile phones, the Internet, and the like. Microblogging is more rooted and widely distributed on multiple platforms such as desktops, browsers, and mobile terminals. There are multiple business models coexisting, or the possibility of forming multiple vertical segments, but no matter which business model, The characteristics and basic functions of the user experience cannot be separated.
  • the embodiment of the invention provides a microblog-based document file sharing method, which not only enhances document dissemination, but also improves document information security.
  • the embodiment of the invention also proposes a microblog-based document file sharing device, which not only enhances the text File dissemination, and improve the security of document information.
  • a microblog-based document file sharing method comprising:
  • the swf file of the format confusion is released through the Weibo platform.
  • a microblog-based document file sharing device includes a format conversion unit, a format confusion unit, and a file publishing unit, wherein:
  • a format conversion unit for converting a document file into a swf file
  • a format obfuscation unit configured to perform format confusion on the swf file
  • a file publishing unit configured to release the swf file in the format confusing through the microblog platform.
  • a machine readable medium having stored thereon a set of instructions that, when executed, cause the machine to perform the above-described microblog-based document file sharing method.
  • FIG. 1 is a flow chart of a microblog-based document file sharing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a microblog ID and a document ID according to an embodiment of the present invention
  • Document conversion instant task flow chart
  • FIG. 4 is a flowchart of a document conversion timing task according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing a configuration of a swf file header according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a key distribution process according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of a microblog-based document file sharing apparatus according to an embodiment of the present invention. detailed description In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings.
  • the sharing of document files is realized by means of the social platform of Weibo, so that the sharing is wider and the audience is more.
  • embodiments of the present invention preferably convert the document file into a swf file and modify the swf file format.
  • the player applies for obtaining these swf files, it assigns a public key to the player.
  • the player carries the public key to request the swf file, and the entire swf file needs to be reverse-transformed to play, thereby improving the security of the document information. .
  • FIG. 1 is a flowchart of a microblog-based document file sharing method according to an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step 101 Convert the document file to a swf file.
  • the document file can be a PDF file, a DOC file, a PPT file, an XLS file, or a TXT file, and the like.
  • the document file may be directly converted into a swf file; or the document file may be first converted into an intermediate format file, and then converted into a swf file by the intermediate format file.
  • the document file is a doc file and a ppt file
  • the conversion of the document file format can be performed in a multi-threaded manner, thereby reducing latency.
  • N threads can be applied to convert document files into swf files.
  • N (X/10)>5? 5: (X/10); X is the number of pages in the document file.
  • the conversion execution speed can be increased by N times.
  • the user can first click on the document file in the microblog posting box and select to upload these local document files to the microblog platform, and then the microblog platform specifically converts the document file into a swf file.
  • the database of the microblog platform After the user uploads the local document file to the microblog platform by publishing the microblog, the database of the microblog platform stores the microblog temporary data, and binds the mapping relationship between the user uploaded document file and the microblog temporary data.
  • the microblog platform may specifically be an enterprise microblog platform, thereby facilitating the implementation of the published document file by the enterprise.
  • FIG. 2 is a schematic diagram of a comparison between a Weibo ID and a document ID according to an embodiment of the present invention.
  • the value of the Attach_id field of a record of the microblog data table is 456, and the Attach_id field corresponds to the record of the ID field value of the document data table of 456, thereby being able to smoothly Find the path to the document file (File_ Path ).
  • Step 102 Perform format confusion on the swf file.
  • the swf file format is a special format for the animation design software Flash. It is an animation file format that supports vector and dot matrix graphics, and is widely used in web design, animation, and other fields. Swf files are also commonly referred to as Flash files. Swf can be opened with Adobe Flash Player, and the browser needs to install the Adobe Flash Player plugin.
  • the SWF file header format is as shown in Table 1 below:
  • the format confusion of the swf file includes: first performing an exclusive OR operation on the head of the swf; then inserting a pseudo swf header before the head of the swf after the exclusive OR operation Department and random strings.
  • FIG. 5 is a schematic diagram showing the construction of a swf file header according to an embodiment of the present invention.
  • Step 103 Publish the swf file in the format confusion through the Weibo platform.
  • step 101 and step 102 After performing step 101 and step 102, that is, after the document file format conversion is successful and the swf file format is confused, the microblog platform can issue a background conversion success signal, and then update the temporary microblog data to the official data and write to the microblog database. Therefore, the swf file of the format confusion is formally uploaded through the microblog form, and the user is presented with an online preview reminder information.
  • the method may further include: downloading the formatted swf file by the user through the microblog platform; and then using the flash player in the browser to inversely transform the swf file, and playing the reverse transformed swf file.
  • the downloading the formatted swf file by the user through the microblog platform may include: requesting the public key to be distributed to the microblog platform; receiving the public key returned by the microblog platform; sending the private key and the returned public key to the microblog platform.
  • the co-generated key after the microblog platform authenticates the key, receives the formatted conf file from the microblog platform.
  • the reverse transformation work may include: removing the forged header; removing the random string according to the length of the random string; and XORing again to obtain the true header of the swf file.
  • the flash player can process each swf file and play it.
  • the microblog platform can perform the conversion on the fly, or can perform the conversion at regular intervals. After storing the microblog temporary data successfully, the microblogging platform can issue a format conversion request to the conversion background server, and convert the background server startup process to perform the instant conversion service.
  • the conversion background server can also have a time conversion detection task, and convert the file that fails the instant conversion again to eliminate the unpredictable factors (such as request service timeout, network instability, code abnormality, etc.), which leads to the probability of real-time conversion failure.
  • the status code of the document file can be set in advance. For example: When the status code of the document file is 2, it indicates that the format conversion has been successful; when the status code of the document file is 1, it indicates that the format conversion has not been performed; when the status code status of the document file is -1, the format conversion fails.
  • FIG. 3 is a flow chart of a document conversion instant task according to an embodiment of the present invention.
  • the method includes:
  • Step 301 Set the conversion status of the document file to be converted to 1.
  • Step 302 Start performing format conversion of the document file.
  • Step 303 Determine whether the format conversion of the document file has been successful. If it is successful, execute step 304 and end the process; otherwise, execute step 305 and end the process.
  • Step 304 Label the status of the document file to 2.
  • Step 305 Mark the status of the document file as -1.
  • FIG. 4 is a flow chart of a document conversion timing task according to an embodiment of the present invention.
  • the document conversion timing task can be used to convert the document that failed the instant conversion again, thereby increasing the probability of successful conversion.
  • the method includes:
  • Step 401 Obtain a document whose conversion failed.
  • the document with the status label -1 is obtained.
  • Step 402 Perform a document conversion service on these documents.
  • Step 403 Determine whether the format conversion of the document file has been successful. If it is successful, execute step 404 and end the process; otherwise, execute step 405 and end the process.
  • Step 404 Label the status of the document file as 2.
  • Step 405 Label the status of the document file to -1.
  • the online preview of the document in Weibo needs to be realized by the flash player.
  • the player needs to request the swf file and download the swf file and reverse the swf file to return to the original file parsing to be successful. Can preview online.
  • the embodiment of the present invention preferably implements file downloading and display by the method of distributing the handshake protocol and its one-time key.
  • FIG. 6 is a schematic diagram of a key distribution process according to an embodiment of the present invention.
  • the method includes:
  • Step 601 The player sends a document file download request to the microblog platform to request to download the document file, and requests to allocate a public key.
  • Step 602 The microblog platform returns a public key to the player.
  • Step 603 The player generates a key according to the public key and the private key saved by itself, and sends the key to the Weibo platform for authentication.
  • Step 604 The microblog platform authentication sends the swf file to the player through the key, and destroys the key.
  • the player After the player downloads the swf file, it reverses the swf file and plays the reverse-modified swf file.
  • Specific anti-retro work can include: removing the forged header; removing the random string according to the length of the random string; XORing again to get the true header of the swf file, and so on.
  • the document file for the PPT format can also be converted to the swf format based on the isping technique, thereby realizing the animation playback effect.
  • FIG. 7 is a structural diagram of a microblog-based document file sharing apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: a format conversion unit 701, a format obfuscation unit 702, and a file issuing unit 703.
  • a format conversion unit 701 is configured to convert the document file into a swf file
  • a format obfuscation unit 702 configured to perform format confusion on the swf file
  • the file issuing unit 703 is configured to release the swf file in the format confusion through the microblog platform.
  • the format obfuscation unit 702 is configured to perform an exclusive OR operation on the header of the swf and insert a pseudo swf header and a random string in front of the header of the swf after the exclusive OR operation.
  • the apparatus further includes a file download unit 704;
  • the file downloading unit 704 is configured to download the swf file of the format confusion through the blog platform, inversely transform the swf file, and play the inversely modified swf file.
  • the file downloading unit 704 is configured to request the public key to be allocated to the microblog platform, receive the public key returned by the microblog platform, and send the key generated by the private key and the returned public key to the microblog platform. And after the microblogging platform authenticates the key, the swf file of the format confusion is received from the microblog platform.
  • the document file can be a PDF file, a DOC file, a PPT file, an XLS file or a TXT file, and the like.
  • An embodiment of the present invention further provides a microblog-based document file sharing device, including: a memory for storing an instruction; and a processor coupled to the memory.
  • the processor is configured to execute instructions stored in the memory and configured to perform various embodiments of the above-described microblog-based document file sharing method.
  • embodiments of the present invention further provide a machine readable medium having stored thereon a set of instructions that, when executed, cause the machine to perform various embodiments of the above-described microblog-based document file sharing method.
  • the document file is first converted into a swf file; then the format of the swf file is confusing; and the swf file of the format is released through the microblog platform.
  • the information dissemination and the audience are expanded through the sharing of the microblog technology, thereby enhancing the document dissemination.
  • the possibility of directly obtaining the original document document data through the link is avoided, and thus the information security of the document is also enhanced.

Abstract

本发明实施方式提出了一种基于微博的文档文件共享方法和装置。方法包括:将文档文件转换为swf文件;对所述swf文件进行格式混淆;通过微博平台发布该格式混淆后的所述swf文件。应用本发明实施方式以后,通过微博技术分享扩大了信息传播和受众,而且通过对swf文件进行格式混淆,避免了通过链接直接获取到文档文件资料原件的可能性,因此还加强了文档的信息安全。

Description

一种基于微博的文档文件共享方法和装置 技术领域
本发明实施方式涉及微博技术领域, 更具体地, 涉及一种基于微博的文 档文件共享方法和装置。 背景技术
微博, 即微博客(MicroBlog )的简称, 是一种基于用户关系的信息共享、 传播以及获取平台。 通过 博平台, 用户可以应用 WEB、 WAP以及各种客户 端组件, 以 140字左右的文字更新信息, 并实现即时共享。
相对于强调版面布置的博客来说, 微博的内容组成只是由简单的只言片 语组成, 从这个角度来说, 对用户的技术要求门槛很低, 而且在语言的编排 组织上,没有博客那么高。微博开通的多种 API使得大量的用户可以通过手机、 网络等方式来即时更新自己的个人信息。 微博草根性更强, 且广泛分布在桌 面、 浏览器、 移动终端等多个平台上, 有多种商业模式并存, 或形成多个垂 直细分领域的可能, 但无论哪种商业模式, 都离不开用户体验的特性和基本 功能。
在现有微博技术中, 已经有关于图片和视频文件的共享机制, 但是目前 微博中并没有关于文档文件(PPT、 DOC、 PDF 等文件) 的共享机制。 针对 部分格式的文档文件, 目前互联网上也存在有一些在线共享应用。 然而, 在 现有技术的文档文件资料在线共享应用中, 存在着通过链接直接获取到文档 文件资料原件的可能性 , 这对于企业而言存在着信息安全隐患。
而且, 目前的文档文件资料在线共享在社会化传播方面亦无微博迅速和 受众广泛。 发明内容
本发明实施方式提出一种基于微博的文档文件共享方法, 既增强文档传 播性, 又提高文档信息安全性。
本发明实施方式还提出了一种基于微博的文档文件共享装置, 既增强文 档传播性, 又提高文档信息安全性。
本发明实施方式的具体方案如下:
一种基于微博的文档文件共享方法, 该方法包括:
将文档文件转换为 swf文件;
对所述 swf文件进行格式混淆;
通过微博平台发布该格式混淆后的所述 swf文件。
一种基于微博的文档文件共享装置, 包括格式转换单元、 格式混淆单元 和文件发布单元, 其中:
格式转换单元, 用于将文档文件转换为 swf文件;
格式混淆单元, 用于对所述 swf文件进行格式混淆;
文件发布单元, 用于通过微博平台发布该格式混淆后的所述 swf文件。 一种机器可读介质, 其上存储有指令集合, 当该指令集合被执行时, 使 得该机器可执行上述基于微博的文档文件共享方法。
从上述技术方案可以看出, 在本发明实施方式中, 首先将文档文件转换 为 swf文件; 然后对 swf文件进行格式混淆; 再通过微博平台发布该格式混 淆后的 swf文件。 由此可见, 应用本发明实施方式以后, 通过微博技术分享 扩大了信息传播和受众, 从而增强了文档传播性。 另外, 通过对 swf文件进 行格式混淆, 避免了通过链接直接获取到文档文件资料原件的可能性, 因此 还加强了文档的信息安全。 附图说明 图 1为根据本发明实施方式的基于微博的文档文件共享方法流程图; 图 2为根据本发明实施方式的微博 ID与文档 ID的对照示意图; 图 3为根据本发明实施方式的文档转换即时任务流程图;
图 4为根据本发明实施方式的文档转换定时任务流程图;
图 5为根据本发明实施方式的 swf文件头部构造示意图;
图 6为根据本发明实施方式的密钥分配流程示意图;
图 Ί为根据本发明实施方式的基于微博的文档文件共享装置结构图。 具体实施方式 为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图对本发明 作进一步的详细描述。
在本发明实施方式中, 针对现有技术中文档文件传播性差、 信息安全性 差等缺陷, 借助于微博这个社交平台实现文档文件的分享, 使得分享更加广, 受众更多。
而且, 本发明实施方式优选将文档文件转换为 swf文件, 并对 swf文件 格式进行改造。 当播放器申请获取这些 swf文件时, 分配一个公钥给播放器, 播放器带着这个公钥才能请求到 swf文件, 而且整个 swf文件还要进行反改 造才能进行播放, 从而提高文档信息安全性。
图 1为根据本发明实施方式的基于微博的文档文件共享方法流程图。 如图 1所示, 该方法包括:
步骤 101 : 将文档文件转换为 swf文件。
在这里, 可以通过多种方式将文档文件转换为 swf文件。
首先, 文档文件具体可以为 PDF文件、 DOC文件、 PPT文件、 XLS文 件或 TXT文件, 等等。
以上虽然罗列出文档文件的一些具体示范性格式, 本领域技术人员可以 意识到, 文档文件的具体格式并不局限于罗列出的这些具体形式, 同样也不 局限于由微软公司所定义的各种文档文件格式, 而是应该适用于任意带有文 字显示或编辑功能的文档格式。
在转换过程中可以应用各种类型的现有应用软件。 比如可以采用 flash paper软件,安装后可以直接把 doc等文件拖进去,就可以自动生成 swf文件。
在本发明实施方式中, 可以直接将文档文件转换为 swf文件; 也可以首 先将文档文件转换为中间格式的文件,再由中间格式的文件转换为 swf文件。
比如, 假设文档文件为 doc文件和 ppt文件, 则可以直接应用相应的格 式转换工具分别将 doc文件转换为 swf文件,以及将 ppt文件转换为 swf文件。 或者,还可以首先将 doc文件和 ppt文件统一转换为 pdf文件, 然后再应用软 件 pdf2swf将 pdf文件格式统一转换为 swf文件格式。
在一个实施方式中, 可以通过多线程方式来执行文档文件格式的转换服 务, 从而减少等待时间。
比如: 可以应用 N个线程将文档文件转换为 swf文件。 其中 N = (X/10)>5? 5: (X/10); X为文档文件的页数。
各线程转换的文档页码分别为 、 X2、 Xn;其中: mod N = 0; X2 mod N = l ; 一直到 X n mod N = N-l。
这样, 通过应用多线程并发, 可以使得转换执行速度提高 N倍。
在实际应用中, 用户可以首先在微博发表框内点击文档文件, 并选择将 这些本地的文档文件上传到微博平台, 再由微博平台具体实现将文档文件转 换为 swf文件。
当用户通过发表微博的形式将本地的文档文件上传到微博平台后, 微博 平台的数据库存储微博临时数据, 并绑定用户上传的文档文件与微博临时数 据的映射关系。
优选地, 微博平台具体可以为企业微博平台, 从而便于企业推行发布文 档文件。
图 2为根据本发明实施方式的微博 ID与文档 ID的对照示意图。
如图 2所示,例如:微博数据表的某条记录的 Attach— id字段的值为 456, 该 Attach— id字段将对应于文档数据表的 ID字段值为 456这条记录, 从而能 够顺利找到文档文件的路径 (File— Path ) 。
步骤 102: 对所述 swf文件进行格式混淆。
在这里, 首先 swf文件格式是动画设计软件 Flash的专用格式,是一种支 持矢量和点阵图形的动画文件格式, 被广泛应用于网页设计, 动画制作等领 域。 swf文件通常也被称为 Flash文件。 swf 可以用 Adobe Flash Player打开, 浏览器需要安装 Adobe Flash Player插件。
SWF文件头格式为如下表 1所示:
表 1
Figure imgf000006_0001
文件长度 UI32 整个文件的字节长度
帧尺寸 RECT 单位帧的尺寸
帧率 UI16 每秒的帧数, 其 16个位是按照 8.8的格式表 示的
帧数 UI16 影片的总帧数 在本发明实施方式中, 对 swf文件进行格式混淆包括: 首先对 swf的头 部进行异或操作; 然后在异或操作后的 swf的头部前插入伪 swf头部和随机 串。
图 5为根据本发明实施方式的 swf文件头部构造示意图。
由图 5可见, 在 swf文件的头部插入一个伪造的 swf头部和随机串, 代 替原来的 swf头部, 这样整个 swf文件构造完毕。
步骤 103: 通过微博平台发布该格式混淆后的所述 swf文件。
当执行完步骤 101和步骤 102之后,即文档文件格式转换成功并混淆 swf 文件格式后, 微博平台可以发出后台转换成功信号, 然后将临时微博数据更 新为正式数据并写入微博数据库, 从而正式通过微博形式上传该格式混淆后 的 swf文件, 并给用户发可在线预览提醒信息。
该方法中, 还可以包括: 用户通过微博平台下载该格式混淆后的 swf文 件; 然后利用浏览器中的 flash播放器对 swf文件进行反改造, 并播放经过反 改造后的 swf文件。
而且, 用户通过微博平台下载该格式混淆后的 swf文件可以包括: 向微 博平台请求分配公钥; 接收微博平台返回的公钥; 向微博平台发送由私钥和 所返回的公钥共同生成的密钥; 当微博平台认证通过该密钥后, 从微博平台 接收所述格式混淆后的 swf文件。
具体地, 反改造工作可以包括: 去掉伪造的头部; 根据随机串的长度去 掉随机串; 再次异或以得到 swf文件的真头部。
经过这样这一系列的处理后, flash播放器就可以处理每一个 swf文件并 进行播放。
针对步骤 101所描述的文档文件格式转换, 微博平台可以即时执行该转 换, 也可以定时执行该转换。 当存储微博临时数据成功后, 微博平台可以发出格式转换请求到转换后 台服务器, 转换后台服务器启动进程进行即时转换服务。 当然, 转换后台服 务器也可有定时转换检测任务, 将即时转换失败的文档再次进行转换从而排 除一些不可预知的因素 (如请求服务超时、 网络不稳定、 代码异常等)导致 即时转换失败的概率。
可以预先设置文档文件的状态代码。 比如: 文档文件的状态代码为 2时, 表示已经格式转换成功; 文档文件的状态代码为 1 时, 表示还没有进行格式 转换; 文档文件的状态代码状态为 -1时, 表示格式转换失败。
图 3为根据本发明实施方式的文档转换即时任务流程图。
如图 3所示, 该方法包括:
步骤 301 : 将需要转换的文档文件的转换状态设置为 1。
步骤 302: 开始执行文档文件的格式转换。
步骤 303: 判断文档文件的格式转换是否已经成功, 如果已经成功则执 行步骤 304并结束本流程; 否则执行步骤 305并结束本流程。
步骤 304: 将文档文件的状态标注为 2。
步骤 305: 将文档文件的状态标注为 -1。
图 4为根据本发明实施方式的文档转换定时任务流程图。
文档转换定时任务可以用于对即时转换失败的文档再次进行转换, 从而 增强转换成功的概率。
如图 4所示, 该方法包括:
步骤 401 : 获取转换失败的文档。 在这里, 即获取状态标注为 -1的文档。 步骤 402: 对这些文档执行文档转换服务。
步骤 403: 判断文档文件的格式转换是否已经成功, 如果已经成功则执 行步骤 404并结束本流程; 否则执行步骤 405并结束本流程。
步骤 404: 将文档文件的状态标注为 2。
步骤 405: 将文档文件的状态标注为 -1。
当执行了格式转换以及格式混淆的 swf文件被上传到微博平台后, 用户 可以下载这些文档文件并予以显示。
微博中文档的在线预览需要通过 flash播放器来实现, 播放器需要请求 swf文件并下载 swf文件和反改造 swf文件回归到原始文件解析才能成功,才 能在线预览。
为了增强文档文件的信息安全性, 本发明实施方式优选通过累握手协议 及其一次性密钥的分配方式来实现文件下载和显示。
图 6为根据本发明实施方式的密钥分配流程示意图。
如图 6所示, 该方法包括:
步骤 601 : 播放器向微博平台发送文档文件下载请求, 以请求下载文档 文件, 并请求分配一个公钥。
步骤 602: 微博平台向播放器返回一个公钥。
步骤 603 : 播放器根据该公钥以及自身保存的私钥, 生成密钥, 并将该 密钥发送到微博平台进行认证。
步骤 604: 微博平台认证通过该密钥, 向播放器发送 swf文件, 并销毁此 密钥。
播放器下载到 swf文件后, 再对 swf文件进行反改造, 并播放经过反改 造后的 swf文件。 具体反改造工作可以包括: 去掉伪造的头部; 根据随机串 的长度去掉随机串; 再次异或以得到 swf文件的真头部, 等等。 在这里, 对 于 PPT格式的文档文件, 还可以基于 isping技术来实现转换为 swf格式, 从 而实现动画播放效果。
基于上述详细说明, 本发明实施方式还提出了一种文档文件共享装置。 图 7为根据本发明实施方式的基于微博的文档文件共享装置结构图。 如图 7所示, 该装置包括: 格式转换单元 701、 格式混淆单元 702和文 件发布单元 703。
其中: 格式转换单元 701 , 用于将文档文件转换为 swf文件;
格式混淆单元 702, 用于对所述 swf文件进行格式混淆;
文件发布单元 703 , 用于通过微博平台发布该格式混淆后的所述 swf 文 件。
在一个实施方式中,格式混淆单元 702,用于对 swf的头部进行异或操作, 并在所述异或操作后的 swf的头部前插入伪 swf头部和随机串。
而且, 格式转换单元 701 , 用于应用 N个线程将文档文件转换为 swf文 件, 其中 N = (X/10)>5? 5: (X/10); X为所述文档文件的页数。
优选地, 该装置进一步包括文件下载单元 704; 所述文件下载单元 704, 用于通过 博平台下载所述格式混淆后的 swf 文件, 对所述 swf文件进行反改造, 并播放经过反改造后的 swf文件。
在一个实施方式中, 文件下载单元 704, 用于向微博平台请求分配公钥, 接收微博平台返回的公钥, 向微博平台发送由私钥和所返回的公钥共同生成 的密钥, 并当微博平台认证通过该密钥后, 从微博平台接收所述格式混淆后 的 swf文件。
文档文件具体可以为 PDF文件、 DOC文件、 PPT文件、 XLS文件或 TXT 文件, 等等。
以上虽然罗列出文档文件的一些具体示范性格式, 本领域技术人员可以 意识到, 文档文件的具体格式并不局限于罗列出的这些具体形式, 同样也不 局限于由微软公司所定义的各种文档文件格式, 而是应该适用于任意带有文 字显示或编辑功能的文档格式。
本发明实施例还提供一种基于微博的文档文件共享设备, 其包括: 存储 器, 用于存储指令; 以及处理器, 与所述存储器耦合。 该处理器被配置为执 行存储在所述存储器中的指令, 且被配置为用于执行上述基于微博的文档文 件共享方法的各种实施方式。 此外, 本发明实施例又提供一种机器可读介质, 其上存储有指令集合, 当该指令集合被执行时, 使得该机器可执行上述基于 微博的文档文件共享方法的各种实施方式。
从上述技术方案可以看出, 在本发明实施方式中, 首先将文档文件转换 为 swf文件; 然后对 swf文件进行格式混淆; 再通过微博平台发布该格式混 淆后的 swf文件。 由此可见, 应用本发明实施方式以后, 通过微博技术分享 扩大了信息传播和受众, 因此增强了文档传播性。 而且通过对 swf文件进行 格式混淆, 避免了通过链接直接获取到文档文件资料原件的可能性, 因此还 加强了文档的信息安全。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保护 范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种基于微博的文档文件共享方法, 其特征在于, 该方法包括: 将文档文件转换为 swf文件;
对所述 swf文件进行格式混淆;
通过微博平台发布该格式混淆后的所述 swf文件。
2、 根据权利要求 1所述的基于微博的文档文件共享方法, 其特征在于, 该方法进一步包括:
通过微博平台下载所述格式混淆后的 swf文件;
对所述 swf文件进行反改造, 并播放经过反改造后的 swf文件。
3、 根据权利要求 1所述的基于微博的文档文件共享方法, 其特征在于, 所述对 swf文件进行格式混淆包括:
对 swf的头部进行异或操作;
在所述异或操作后的 swf的头部前插入伪 swf头部和随机串。
4、 根据权利要求 1所述的基于微博的文档文件共享方法, 其特征在于, 所述将文档文件转换为 swf文件包括:
应用 N个线程将文档文件转换为 swf文件;
其中 N = (X/10)>5? 5: (X/10); X为所述文档文件的页数。
5、 根据权利要求 2所述的基于微博的文档文件共享方法, 其特征在于, 所述通过微博平台下载所述格式混淆后的 swf文件包括:
向微博平台请求分配公钥;
接收微博平台返回的公钥;
向微博平台发送由私钥和所返回的公钥共同生成的密钥;
当微博平台认证通过该密钥后, 从微博平台接收所述格式混淆后的 swf 文件。
6、 根据权利要求 1-5中任一项所述的基于微博的文档文件共享方法, 所 述文档文件为 PDF文件、 DOC文件、 PPT文件、 XLS文件或 TXT文件。
7、一种基于微博的文档文件共享装置,其特征在于, 包括格式转换单元、 格式混淆单元和文件发布单元, 其中:
格式转换单元, 用于将文档文件转换为 swf文件;
格式混淆单元, 用于对所述 swf文件进行格式混淆; 文件发布单元, 用于通过微博平台发布该格式混淆后的所述 swf文件。
8、 根据权利要求 7所述的基于微博的文档文件共享装置, 其特征在于, 该装置进一步包括文件下载单元;
所述文件下载单元,用于通过微博平台下载所述格式混淆后的 swf文件, 对所述 swf文件进行反改造, 并播放经过反改造后的 swf文件。
9、 根据权利要求 7所述的基于微博的文档文件共享装置, 其特征在于, 所述格式混淆单元, 用于对 swf 的头部进行异或操作, 并在所述异或操 作后的 swf的头部前插入伪 swf头部和随机串。
10、根据权利要求 7所述的基于微博的文档文件共享装置, 其特征在于, 所述格式转换单元, 用于应用 N个线程将文档文件转换为 swf文件, 其 中 N = (X/10)>5? 5: (X/10); X为所述文档文件的页数。
11、根据权利要求 8所述的基于微博的文档文件共享装置, 其特征在于, 所述文件下载单元, 用于向微博平台请求分配公钥, 接收微博平台返回的公 钥, 向微博平台发送由私钥和所返回的公钥共同生成的密钥, 并当微博平台 认证通过该密钥后, 从微博平台接收所述格式混淆后的 swf文件。
12、 根据权利要求 8-11中任一项所述的基于微博的文档文件共享装置, 所述文档文件为 PDF文件、 DOC文件、 PPT文件、 XLS文件或 TXT文件。
13、 一种机器可读介质, 其上存储有指令集合, 当该指令集合被执行时, 使得该机器可执行权利要求 1至 6中任意一个权利要求所述的方法。
PCT/CN2013/072242 2012-03-26 2013-03-06 一种基于微博的文档文件共享方法和装置 WO2013143379A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020147002299A KR101541659B1 (ko) 2012-03-26 2013-03-06 마이크로 블로그-기반 문서 파일 공유 방법 및 장치
JP2014521944A JP5747128B2 (ja) 2012-03-26 2013-03-06 マイクロブログベースのドキュメントファイルの共有の方法及び装置
US14/171,341 US9465779B2 (en) 2012-03-26 2014-02-03 Microblog-based document file sharing method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210081899.5A CN103365830B (zh) 2012-03-26 2012-03-26 一种基于微博的文档文件共享方法和装置
CN201210081899.5 2012-03-26

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/171,341 Continuation US9465779B2 (en) 2012-03-26 2014-02-03 Microblog-based document file sharing method and device

Publications (1)

Publication Number Publication Date
WO2013143379A1 true WO2013143379A1 (zh) 2013-10-03

Family

ID=49258185

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/072242 WO2013143379A1 (zh) 2012-03-26 2013-03-06 一种基于微博的文档文件共享方法和装置

Country Status (5)

Country Link
US (1) US9465779B2 (zh)
JP (1) JP5747128B2 (zh)
KR (1) KR101541659B1 (zh)
CN (1) CN103365830B (zh)
WO (1) WO2013143379A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101951884B1 (ko) 2017-04-18 2019-02-25 이경열 마이크로 블로그 기반 서비스 제공 서버 및 방법
KR101934907B1 (ko) 2017-04-18 2019-01-03 이경열 마이크로 블로그 포스트 제공 서버, 단말 및 방법
CN107292133B (zh) * 2017-05-18 2021-06-04 深圳中兴网信科技有限公司 人工智能的混淆技术方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110099376A1 (en) * 2009-10-27 2011-04-28 Vikas Gupta Systems and methods for authenticating an electronic transaction
US20110197237A1 (en) * 2008-10-10 2011-08-11 Turner Steven E Controlled Delivery of Content Data Streams to Remote Users
CN102243665A (zh) * 2011-08-22 2011-11-16 上海梅花信息有限公司 一种文档在线播放系统及方法

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010069671A (ko) 2001-04-26 2001-07-25 강명덕 복제 억제 기술을 통한 전자문서 판매 및 임대 방법
US20050193330A1 (en) * 2004-02-27 2005-09-01 Exit 33 Education, Inc. Methods and systems for eBook storage and presentation
WO2009026727A2 (en) * 2007-08-31 2009-03-05 Tree Technologies Inc. System and method for the automated creation of a virtual publication
JPWO2009034718A1 (ja) * 2007-09-12 2011-02-10 株式会社ヒューベースi フラッシュファイル生成システム及びオリジナル画像情報生成システム
JP5277434B2 (ja) * 2007-12-17 2013-08-28 エヌエイチエヌ コーポレーション コンテンツ提供方法及びコンテンツ提供システム
US20090252323A1 (en) * 2008-04-03 2009-10-08 Simon Cooper Methods, techniques and system for maintaining security on computer systems
US20100023849A1 (en) * 2008-07-22 2010-01-28 Maher Hakim Creating and Providing Online Presentations
US20120226823A1 (en) * 2008-10-12 2012-09-06 Confidela Ltd Document distribution system and method
US20100332959A1 (en) * 2009-06-24 2010-12-30 Nextslide, Llc System and Method of Capturing a Multi-Media Presentation for Delivery Over a Computer Network
CN101833567A (zh) * 2010-03-31 2010-09-15 北京志腾新诺科技有限公司 文档转换方法、装置及系统
JP5663941B2 (ja) * 2010-04-30 2015-02-04 富士ゼロックス株式会社 印刷文書変換装置およびプログラム
CN102254005A (zh) * 2011-07-15 2011-11-23 苏州阔地网络科技有限公司 一种在网页上实现的文档转换显示方法
US20130031636A1 (en) * 2011-07-28 2013-01-31 Viacom International Inc. Secure game scrambler

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110197237A1 (en) * 2008-10-10 2011-08-11 Turner Steven E Controlled Delivery of Content Data Streams to Remote Users
US20110099376A1 (en) * 2009-10-27 2011-04-28 Vikas Gupta Systems and methods for authenticating an electronic transaction
CN102243665A (zh) * 2011-08-22 2011-11-16 上海梅花信息有限公司 一种文档在线播放系统及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LI, XIN ET AL.: "Copyrights Protection of Swf Files Based on Tags' Order", JOURNAL OF COMPUTER RESEARCH AND DEVELOPMENT, no. 46, December 2009 (2009-12-01), pages 31 - 36 *

Also Published As

Publication number Publication date
JP5747128B2 (ja) 2015-07-08
US9465779B2 (en) 2016-10-11
JP2014523053A (ja) 2014-09-08
KR20140042883A (ko) 2014-04-07
KR101541659B1 (ko) 2015-08-03
US20140149853A1 (en) 2014-05-29
CN103365830B (zh) 2015-07-22
CN103365830A (zh) 2013-10-23

Similar Documents

Publication Publication Date Title
US8635360B2 (en) Media playback point seeking using data range requests
CA2732540C (en) Methods for optimizing a web content proxy server and devices thereof
US20170272499A1 (en) Method and device for loading webpage
TWI671642B (zh) 跨應用共享資料的方法及網頁瀏覽器
US8555324B2 (en) Video download mechanism for transferring large data
US9876879B2 (en) Distributed network page generation
WO2008116760A2 (en) Method and apparatus for processing extensible markup language security messages using delta parsing technology
WO2016100541A1 (en) Network based static font subset management
US20130227004A1 (en) Methods for optimizing a web content proxy server and devices thereof
JP2018055241A (ja) クラウドシステムにおける文書ファイルの生成サービスを提供する装置、方法及びプログラム
US7636769B2 (en) Managing network response buffering behavior
WO2013143379A1 (zh) 一种基于微博的文档文件共享方法和装置
EP2787454A1 (en) Methods for optimizing a web content proxy server and devices thereof
US9485296B1 (en) Distribution network providing customized content at delivery
CN110049133B (zh) 一种dns区文件全量下发的方法和装置
US20150134680A1 (en) Method and apparatus for prefetching content in a data stream
US20140089778A1 (en) Progressive Image Rendering Utilizing Data URI Enhancements
WO2015154681A1 (zh) 一种链接地址生成方法、设备和服务器
JP2022526162A (ja) セッションベースdash動作のためのパターン指定
US20160219120A1 (en) Methods for providing a staging area for objects prior to erasure coding and devices thereof
WO2017092350A1 (zh) 提高缓存命中率的方法及装置
CN110955851B (zh) 一种网络请求处理方法、系统、计算设备
WO2023115589A1 (zh) 一种基于cdn的动态文档生成方法及装置
WO2016155535A1 (zh) 图片合成方法及装置
KR20230122320A (ko) 광고 차단 기능에 대응하여 난독화된 광고를 제공하기 위한 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13767785

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20147002299

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2014521944

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC OF 190215

122 Ep: pct application non-entry in european phase

Ref document number: 13767785

Country of ref document: EP

Kind code of ref document: A1