技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种隐私数据发送方法及装置、隐私数据接收方法及装置。The present invention relates to the field of computer technology, in particular to a method and device for sending private data, and a method and device for receiving private data.
背景技术Background technique
在传统技术中,用户之间交换信息的方式通常为使用即时通信软件互发消息互传文件,或者使用电子邮件互发消息和文件。或者,用户也可以将要希望发送给其他用户的文件上传到网盘中,网盘应用会为文件分配提取码。用户可将该文件提取码通过即时通信软件或电子邮件发送给其他用户,其他用户即可根据该提取码下载文件。In traditional technologies, users usually exchange information by using instant messaging software to exchange messages and transfer files, or by using e-mail to exchange messages and files. Alternatively, the user can also upload the file that he wants to send to other users to the network disk, and the network disk application will assign an extraction code to the file. The user can send the file extraction code to other users through instant messaging software or email, and the other users can download the file according to the extraction code.
然而,发明人经研究发现,传统技术中的用户之间在传递信息或分享文件的过程中,可能会出现隐私泄露的情况,例如,在通过即时通信软件发送消息或文件时,即时通信软件通常仅仅对消息或文件进行了压缩,若发送的数据在传输过程中被拦截(例如在公共wifi环境中),则发送的消息或文件容易泄露。而在前述通过网盘分享文件的方式中,进行分享的文件需要用户上传到网盘中存储,而网盘作为第三方存储位置也存在文件内容被泄密的风险。因此,传统技术中的用户之间在传递信息或分享文件的过程的隐私保护性较低。However, the inventor has found through research that in the process of transmitting information or sharing files between users in the traditional technology, privacy leakage may occur. For example, when sending messages or files through instant messaging software, instant messaging software usually Only the message or file is compressed, if the sent data is intercepted during transmission (such as in a public wifi environment), the sent message or file is easy to leak. In the above method of sharing files through the network disk, the shared files need to be uploaded by the user to the network disk for storage, and the network disk as a third-party storage location also has the risk of file content being leaked. Therefore, the privacy protection in the process of transferring information or sharing files between users in the traditional technology is relatively low.
发明内容Contents of the invention
基于此,为了解决上述用户之间在传递信息或分享文件的过程的隐私保护性较低的技术问题,还提供了一种隐私数据发送方法。Based on this, in order to solve the above-mentioned technical problem of low privacy protection in the process of transferring information or sharing files between users, a method for sending private data is also provided.
一种隐私数据发送方法,包括:A method for sending private data, comprising:
接收输入的隐私数据,获取所述隐私数据的二进制流;receiving the input private data, and obtaining the binary stream of the private data;
获取多媒体文件,所述多媒体文件包括最小编码单元;Acquiring a multimedia file, the multimedia file including a minimum coding unit;
根据所述二进制流对所述多媒体文件进行编码:遍历所述二进制流中的比特值,获取遍历到的比特值在所述二进制流中的序列位置,获取所述多媒体文件中与所述序列位置对应的最小编码单元的编码值,根据所述比特值设置所述编码值的最低有效位的奇偶性;Encode the multimedia file according to the binary stream: traverse the bit values in the binary stream, obtain the sequence position of the traversed bit value in the binary stream, and obtain the sequence position in the multimedia file corresponding to the sequence position For the coded value of the corresponding minimum coding unit, set the parity of the least significant bit of the coded value according to the bit value;
发送所述编码后的多媒体文件。Send the encoded multimedia file.
此外,为了解决上述用户之间在传递信息或分享文件的过程的隐私保护性较低的技术问题,还提供了一种隐私数据发送装置。In addition, in order to solve the above-mentioned technical problem of low privacy protection in the process of transmitting information or sharing files between users, a private data sending device is also provided.
一种隐私数据发送装置,包括:A privacy data sending device, comprising:
隐私数据输入模块,用于接收输入的隐私数据,获取所述隐私数据的二进制流;A privacy data input module, configured to receive input privacy data and obtain a binary stream of the privacy data;
多媒体文件获取模块,用于获取多媒体文件,所述多媒体文件包括最小编码单元;A multimedia file acquiring module, configured to acquire a multimedia file, the multimedia file including a minimum coding unit;
多媒体文件编码模块,用于根据所述二进制流对所述多媒体文件进行编码:遍历所述二进制流中的比特值,获取遍历到的比特值在所述二进制流中的序列位置,获取所述多媒体文件中与所述序列位置对应的最小编码单元的编码值,根据所述比特值设置所述编码值的最低有效位的奇偶性;A multimedia file encoding module, configured to encode the multimedia file according to the binary stream: traverse the bit values in the binary stream, obtain the sequence position of the traversed bit values in the binary stream, and obtain the multimedia file The encoding value of the smallest coding unit corresponding to the sequence position in the file, setting the parity of the least significant bit of the encoding value according to the bit value;
多媒体文件发送模块,用于发送所述编码后的多媒体文件。The multimedia file sending module is used to send the coded multimedia file.
此外,为了解决上述用户之间在传递信息或分享文件的过程的隐私保护性较低的技术问题,还提供了一种隐私数据接收方法。In addition, in order to solve the above-mentioned technical problem of low privacy protection in the process of transmitting information or sharing files between users, a private data receiving method is also provided.
一种隐私数据接收方法,包括:A method for receiving private data, comprising:
接收多媒体文件,遍历所述多媒体文件的最小编码单元的编码值;Receiving a multimedia file, traversing the coding values of the minimum coding unit of the multimedia file;
获取所述遍历到的最小编码单元的编码值的最低有效位;Obtain the least significant bit of the encoded value of the traversed minimum coding unit;
根据所述最低有效位的奇偶性获取相应的比特值;Obtaining a corresponding bit value according to the parity of the least significant bit;
按照所述遍历的顺序将所述获取到的比特值排列成二进制流,根据所述二进制流还原隐私数据。Arranging the acquired bit values into a binary stream according to the order of traversal, and restoring private data according to the binary stream.
此外,为了解决上述用户之间在传递信息或分享文件的过程的隐私保护性较低的技术问题,还提供了一种隐私数据接收装置。In addition, in order to solve the above-mentioned technical problem of low privacy protection in the process of transmitting information or sharing files between users, a private data receiving device is also provided.
一种隐私数据接收装置,包括:A privacy data receiving device, comprising:
多媒体文件接收模块,用于接收多媒体文件,遍历所述多媒体文件的最小编码单元的编码值;The multimedia file receiving module is used to receive the multimedia file and traverse the encoding value of the minimum coding unit of the multimedia file;
编码值遍历模块,用于获取所述遍历到的最小编码单元的编码值的最低有效位;An encoded value traversal module, configured to obtain the least significant bit of the encoded value of the traversed minimum coding unit;
隐私数据的比特值提取模块,用于根据所述最低有效位的奇偶性获取相应的比特值;The bit value extraction module of private data is used to obtain the corresponding bit value according to the parity of the least significant bit;
隐私数据还原模块,用于按照所述遍历的顺序将所述获取到的比特值排列成二进制流,根据所述二进制流还原隐私数据。A private data restoring module, configured to arrange the acquired bit values into a binary stream according to the order of traversal, and restore private data according to the binary stream.
实施本发明实施例,将具有如下有益效果:Implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述隐私数据发送方法及装置和隐私数据接收方法及装置之后,隐私数据没有直接通过即时通信软件发送给其他终端,而是被编码到了其他多媒体文件中,以编码后的多媒体文件为载体传递了该隐私数据。即时该多媒体文件被拦截,拦截者也无法知晓该多媒体文件中包含有隐私信息,因此传递的隐私数据得到了保护,从而使得用户之间传递消息或文件的隐私保护性得到了提高。After adopting the above private data sending method and device and private data receiving method and device, the private data is not directly sent to other terminals through the instant messaging software, but is encoded into other multimedia files, and the encoded multimedia files are used as carriers for transmission the private data. Even if the multimedia file is intercepted, the interceptor cannot know that the multimedia file contains private information, so the transmitted private data is protected, thereby improving the privacy protection of messages or files transmitted between users.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
其中:in:
图1为一个实施例中一种隐私数据发送方法的流程图;Fig. 1 is a flowchart of a method for sending private data in an embodiment;
图2为一个实施例中对多媒体文件进行编码的详细流程图;Fig. 2 is the detailed flowchart that multimedia file is encoded in one embodiment;
图3为一个实施例中一种隐私数据接收方法的流程图;Fig. 3 is a flowchart of a private data receiving method in an embodiment;
图4为一个实施例中一种隐私数据发送装置的结构图;Fig. 4 is a structural diagram of a private data sending device in an embodiment;
图5为一个实施例中一种隐私数据接收装置的结构图。Fig. 5 is a structural diagram of a device for receiving private data in an embodiment.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
为解决上述用户之间在传递信息或分享文件的过程的隐私保护性不高的问题,在一个实施例中,特提出了一种隐私数据发送方法,该方法的执行可依赖于计算机程序,该计算机程序可以是即时通信软件、社交网络应用的客户端程序或社交网络应用的服务器程序等可为用户提供信息发布或者消息传输功能的计算机程序。该计算机程序可运行于冯诺依曼体系的计算机系统之上。该计算机系统可以是智能手机、平板电脑、笔记本电脑或者桌面计算机等终端设备,也可以是运行社交网络应用的服务器程序的服务器设备。In order to solve the above-mentioned problem of low privacy protection in the process of transferring information or sharing files between users, in one embodiment, a method for sending private data is proposed. The execution of this method can rely on computer programs. The computer program may be an instant messaging software, a client program of a social network application, or a server program of a social network application, etc., which can provide users with information publishing or message transmission functions. The computer program can run on the computer system of von Neumann system. The computer system may be a terminal device such as a smart phone, a tablet computer, a notebook computer, or a desktop computer, or a server device running a server program of a social network application.
具体的,在本实施例中,去除隐私数据发送方法如图1所示,包括:Specifically, in this embodiment, the method for sending privacy-removed data is shown in Figure 1, including:
步骤S102:接收输入的隐私数据,获取隐私数据的二进制流。Step S102: Receive the input private data, and obtain the binary stream of the private data.
隐私数据可以是文本消息或文件。例如,在一个基于即时通信应用的应用场景中,用户进入传输隐私数据的模式后,可展示文本输入框。用户可在文本输入框中输入一段隐私的文本内容。或者,可展示文件选择框,用户可在文件选择框中选择需要发送给其他用户的文件。Private data can be text messages or files. For example, in an application scenario based on an instant messaging application, after the user enters the mode of transmitting private data, a text input box may be displayed. Users can enter a piece of private text content in the text input box. Alternatively, a file selection box may be displayed, and the user may select a file to be sent to other users in the file selection box.
在接收到输入的隐私数据之后,可获取其字节流(Byte)。如前例中,若即时通信应用基于java编程语言,且隐私数据的编码格式为GBK编码,则隐私数据中的英文字符占1个字节(即8位),中文字符占两个字节(即16位)。而若使用Unicode编码,则隐私数据中的每个字符(中文字符或英文字符)占据2个字节(即16位),再将字节流中的每个字节转换成二进制的比特值,则可得到隐私数据的二进制流。After receiving the input private data, its byte stream (Byte) can be obtained. As in the previous example, if the instant messaging application is based on the java programming language, and the encoding format of the privacy data is GBK encoding, then the English characters in the privacy data occupy 1 byte (i.e. 8 bits), and the Chinese characters occupy 2 bytes (i.e. 16 bits). If Unicode encoding is used, each character (Chinese character or English character) in the privacy data occupies 2 bytes (ie 16 bits), and then each byte in the byte stream is converted into a binary bit value, Then the binary stream of private data can be obtained.
优选的,获取隐私数据的二进制流的步骤还包括:获取隐私数据的字节流,对字节流进行加密,获取加密后的字节流的二进制流。Preferably, the step of obtaining a binary stream of private data further includes: obtaining a byte stream of private data, encrypting the byte stream, and obtaining a binary stream of the encrypted byte stream.
例如,可使用AES(英文:Advanced Encryption Standard,中文:高级加密标准)算法对字节流进行对称加密。在上例中,在展示了文本输入框或者文件选择框,用户输入了隐私数据或者选择了文件之后,还可展示密码输入框,用户输入密码并重复输入确认密码,该密码即为通过AES加密算法对输入的隐私数据加密的密钥。For example, an AES (English: Advanced Encryption Standard, Chinese: Advanced Encryption Standard) algorithm may be used to perform symmetric encryption on the byte stream. In the above example, after the text input box or file selection box is displayed, after the user enters private data or selects a file, the password input box can also be displayed. The user enters the password and repeatedly enters the confirmation password. The password is encrypted by AES. The key used by the algorithm to encrypt the input private data.
步骤S104:获取多媒体文件,该多媒体文件包括最小编码单元。Step S104: Acquire a multimedia file, where the multimedia file includes a minimum coding unit.
该获取的多媒体文件为承载上述隐私数据的载体。多媒体文件可以是图片文件、音频文件或视频文件等。多媒体文件的二进制流中具有最小编码单元。例如,可选取24位真彩色的BMP等图片文件作为隐私数据的载体,其每一个像素点由24位比特值构成,包含R,G,B三个颜色分量,每个颜色分量占据8个比特位。该8个比特位即为最小编码单元,其值即分别为R,G,B三颜色分量的编码值。。而若选择32位真彩色的BMP等图片文件作为隐私数据的载体,则除了R,G,B三个颜色分量,还包括8位的灰度分量。The acquired multimedia file is a carrier for carrying the aforementioned private data. The multimedia file may be a picture file, an audio file or a video file, etc. The binary stream of a multimedia file has the smallest coding unit. For example, 24-bit true-color BMP and other picture files can be selected as the carrier of private data. Each pixel is composed of 24-bit bit values, including three color components of R, G, and B, and each color component occupies 8 bits. bit. The 8 bits are the minimum coding unit, and their values are the coding values of the three color components of R, G, and B respectively. . And if you choose 32-bit true-color BMP and other picture files as the carrier of private data, in addition to the three color components of R, G, and B, it also includes an 8-bit grayscale component.
例如,在24位真彩色图片中,若某个像素点的颜色通常可以采用16进制表示,例如,对于颜色#1a8bd3即为16进制表示的像素点的颜色,其中,1a为16进制的编码值,换算成10进制即为26,即颜色#1a8bd3对应的三颜色分量分别为R(26),G(139),B(211),即在该图片文件中,三个连续排列的最小编码单元为26、139和211,换成二进制即为:For example, in a 24-bit true color picture, if the color of a certain pixel can usually be expressed in hexadecimal, for example, the color #1a8bd3 is the color of the pixel expressed in hexadecimal, where 1a is hexadecimal The encoding value of , converted to decimal is 26, that is, the three color components corresponding to the color #1a8bd3 are R(26), G(139), B(211), that is, in this picture file, three consecutively arranged The minimum coding units of are 26, 139 and 211, which are replaced by binary:
00011010 10001011 1101001100011010 10001011 11010011
多媒体文件除了图片文件还可以是音频文件。例如,在语音通话中对语音进行编码的脉冲编码调制(英文:Pulse Code Modulation,简称:PCM)编码算法中,对语音模拟信号进行了抽样量化,根据幅度将语音模拟信号量化到由8位比特值确定的256个音阶上,其最小编码单元即为表示一个音阶的8个比特位,该8个比特位的数值即为编码值。The multimedia file may also be an audio file in addition to a picture file. For example, in the pulse code modulation (English: Pulse Code Modulation, abbreviation: PCM) encoding algorithm for encoding voice in voice calls, the voice analog signal is sampled and quantized, and the voice analog signal is quantized to 8 bits according to the amplitude. On the 256 scales whose values are determined, the smallest coding unit is 8 bits representing a scale, and the value of the 8 bits is the coding value.
多媒体文件可由用户自己选取,也可使用预设的多媒体文件。优选的,还可获取二进制流的长度,选择或提示用户选择最小编码单元的个数大于或等于所述二进制流的长度的多媒体文件。例如,若隐私数据的数据量较大,其对应的二进制流的长度较长(即比特位的个数较多),则若用户选择的作为载体的多媒体文件中的最小编码单元的个数小于该二进制流的比特位的个数,则二进制流中的比特位无法全部得到传输。此时,可提示用户多媒体文件的数据量太小,需要重新选择合适大小的多媒体文件。The multimedia file can be selected by the user, or a preset multimedia file can be used. Preferably, the length of the binary stream may also be obtained, and the user may be selected or prompted to select a multimedia file whose number of minimum coding units is greater than or equal to the length of the binary stream. For example, if the amount of private data is large and the length of the corresponding binary stream is relatively long (that is, the number of bits is large), then if the number of minimum coding units in the multimedia file selected by the user as the carrier is less than If the number of bits in the binary stream is limited, all the bits in the binary stream cannot be transmitted. At this time, the user may be prompted that the data volume of the multimedia file is too small, and it is necessary to reselect a multimedia file of a suitable size.
步骤S106:根据二进制流对多媒体文件进行编码。Step S106: Encode the multimedia file according to the binary stream.
步骤S108:发送编码后的多媒体文件。Step S108: Send the encoded multimedia file.
根据二进制流对多媒体文件进行编码的步骤即为将二进制流中的每一个比特值编码到多媒体文件中的相应的最小编码单元的编码值中,其过程可如图2所示,具体为:The step of encoding the multimedia file according to the binary stream is to encode each bit value in the binary stream into the encoding value of the corresponding minimum coding unit in the multimedia file. The process can be as shown in Figure 2, specifically:
步骤S202:遍历二进制流中的比特值。Step S202: traverse the bit values in the binary stream.
步骤S204:获取遍历到的比特值在二进制流中的序列位置。Step S204: Obtain the sequence position of the traversed bit value in the binary stream.
步骤S206:获取多媒体文件中与序列位置对应的最小编码单元的编码值。Step S206: Obtain the coding value of the minimum coding unit corresponding to the sequence position in the multimedia file.
步骤S208:根据比特值设置编码值的最低有效位的奇偶性。Step S208: Set the parity of the least significant bit of the encoded value according to the bit value.
例如,在一个多媒体文件为24位真彩色的图片文件的应用场景中,输入的隐私数据和多媒体文件的二进制流可如表1所示。For example, in an application scenario where the multimedia file is a 24-bit true-color picture file, the input private data and the binary stream of the multimedia file may be as shown in Table 1.
表1Table 1
如表1中,若隐私数据中的比特值按照其在二进制流中的顺序依次为1,0,1,1,1,0;则根据该序列位置,上述比特值在多媒体文件中对应的最小编码单元(8位)的编码值依次即为:10010101(十进制149),01010101(十进制85),11011100(十进制220),00011101(十进制29),01010101(十进制85),00110111(十进制55)。As shown in Table 1, if the bit values in the privacy data are 1, 0, 1, 1, 1, 0 according to their order in the binary stream; then according to the sequence position, the corresponding minimum bit value in the multimedia file is The coding values of the coding unit (8 bits) are in turn: 10010101 (decimal 149), 01010101 (decimal 85), 11011100 (decimal 220), 00011101 (decimal 29), 01010101 (decimal 85), 00110111 (decimal 55).
最低有效位(英文:Least Significant Bit,简称:LSB)即为最小编码单元的编码值在以二进制表示时最低的比特位。如上例中,对于编码值11011100,其最低有效位即为该8位数据中最右边的比特位,其值为0;对于编码值01010101,其最低有效位即为该8位数据中最右边的比特位,其值为1。The least significant bit (English: Least Significant Bit, LSB for short) is the lowest bit when the coding value of the minimum coding unit is expressed in binary. As in the above example, for the encoded value 11011100, the least significant bit is the rightmost bit in the 8-bit data, and its value is 0; for the encoded value 01010101, the least significant bit is the rightmost bit in the 8-bit data A bit whose value is 1.
当遍历到隐私数据的二进制流中的序列位置为0的比特值时,由于其值为1,则需要将多媒体文件中相应的编码值10010101设置为奇数,由于其已经为奇数,则不做操作。When traversing to the bit value whose sequence position is 0 in the binary stream of privacy data, since its value is 1, it is necessary to set the corresponding encoding value 10010101 in the multimedia file to an odd number, and since it is already an odd number, no operation is performed .
当遍历到隐私数据的二进制流中的序列位置为1的比特值时,由于其值为0,则需要将多媒体文件中相应的编码值01010101设置为偶数。在本实施例中,可随机对其进行加1或减1的操作,将其变成01010110或01010100。When traversing to the bit value whose sequence position is 1 in the binary stream of the privacy data, since its value is 0, the corresponding encoding value 01010101 in the multimedia file needs to be set to an even number. In this embodiment, the operation of adding 1 or subtracting 1 can be performed randomly to change it into 01010110 or 01010100.
当遍历到隐私数据的二进制流中的序列位置为2的比特值时,由于其值为1,则需要将多媒体文件中相应的编码值11011100设置为奇数。在本实施例中,可随机对其进行加1或减1的操作,将其变成11011101或11011011。When traversing to the bit value whose sequence position is 2 in the binary stream of the privacy data, since its value is 1, the corresponding encoding value 11011100 in the multimedia file needs to be set to an odd number. In this embodiment, the operation of adding 1 or subtracting 1 can be randomly performed to change it into 11011101 or 11011011.
若隐私数据的二进制流的长度为x个比特位,则需要多媒体文件中的x个最小编码单元来承载。如上例中,若最小编码单元的位长为8,则多媒体文件的大小至少要大于x个字节。If the length of the binary stream of the privacy data is x bits, x minimum coding units in the multimedia file are required to carry it. As in the above example, if the bit length of the minimum coding unit is 8, the size of the multimedia file must be at least greater than x bytes.
按照上述步骤遍历了二进制流中的比特位后则完成了对其承载作用的多媒体文件的编码。可将编码后的多媒体文件发送给其他用户使用的终端。其他用户的终端接收到该经过编码的多媒体文件之后,通过对其最小编码单元的奇偶性的判断,即可还原得到隐藏数据的二进制流,从而还原隐藏数据。After traversing the bits in the binary stream according to the above steps, the encoding of the multimedia file carrying the function is completed. The encoded multimedia files can be sent to terminals used by other users. After receiving the encoded multimedia file, other user terminals can restore the binary stream of the hidden data by judging the parity of the smallest coding unit, thereby restoring the hidden data.
具体的,接收方接收到该编码后的多媒体文件之后的解码过程如图3所示,包括:Specifically, the decoding process after the receiver receives the encoded multimedia file is shown in Figure 3, including:
步骤S302,接收多媒体文件,遍历多媒体文件的最小编码单元的编码值。Step S302, receiving the multimedia file, and traversing the encoding values of the minimum coding unit of the multimedia file.
步骤S304,获取遍历到的最小编码单元的编码值的最低有效位。Step S304, acquiring the least significant bit of the coded value of the traversed minimum coding unit.
步骤S306,根据最低有效位的奇偶性获取相应的比特值。Step S306, obtaining the corresponding bit value according to the parity of the least significant bit.
步骤S308,按照遍历的顺序将所述获取到的比特值排列成二进制流,根据所述二进制流还原隐私数据。Step S308, arranging the obtained bit values into a binary stream according to the order of traversal, and restoring the private data according to the binary stream.
例如,若依次接收到多媒体文件的二进制流为:For example, if the binary streams of multimedia files are received sequentially as follows:
10010101,01010110,11011101,00011101,01010101,00110110……10010101, 01010110, 11011101, 00011101, 01010101, 00110110...
则根据其每一个最小编码单元的奇偶性即可得到的相应的比特值为:Then the corresponding bit value that can be obtained according to the parity of each minimum coding unit is:
1,0,1,1,1,0……1, 0, 1, 1, 1, 0...
将其排列为二进制流即为101110…,再以每8位为一个字节将该二进制流转换成字节流,即可还原得到隐私数据。若隐私数据在编码到多媒体文件之前经过了AES加密,则需要询问发送者AES加密的密码,然后通过该密码解密得到隐私数据。Arranging it as a binary stream is 101110..., and then converting the binary stream into a byte stream with every 8 bits as a byte, the private data can be restored. If the private data is encrypted by AES before being encoded into the multimedia file, it is necessary to ask the sender for the AES encrypted password, and then decrypt the password to obtain the private data.
进一步的,在一个实施例中,该方法的执行还可基于社交网络应用的服务器程序,也就是说,上述步骤S102至步骤S108可由社交网络应用的服务器来执行,用户可通过客户端程序向服务器上传隐私数据,服务器可执行上述步骤S102至步骤S108生成编码后的多媒体文件。Further, in one embodiment, the execution of the method may also be based on a server program of a social network application, that is to say, the above steps S102 to S108 may be performed by a server of a social network application, and the user may send the server program to the server through the client program. After uploading the private data, the server can execute the above steps S102 to S108 to generate encoded multimedia files.
而在该实施例中,发送编码后的多媒体文件的步骤之前还可包括:生成与编码后的多媒体文件对应的媒体链接,通过网页展示编码后的多媒体文件。In this embodiment, before the step of sending the encoded multimedia file, it may further include: generating a media link corresponding to the encoded multimedia file, and displaying the encoded multimedia file through a webpage.
发送编码后的多媒体文件的步骤还包括:接收与媒体链接对应的多媒体文件下载请求,发送与媒体链接对应的编码后的多媒体文件。The step of sending the encoded multimedia file further includes: receiving a multimedia file download request corresponding to the media link, and sending the encoded multimedia file corresponding to the media link.
也就是说,服务器程序在接收了用户通过客户端上传的隐私数据,并执行了上述步骤S102至步骤S106之后,即生成了编码后的已承载了隐私数据的多媒体文件,服务器可将其展示在网页上,提供给其他用户浏览,其他用户则点击网页上的多媒体文件对应的链接发起下载请求下载多媒体文件。That is to say, after the server program receives the private data uploaded by the user through the client and executes the above steps S102 to S106, it generates an encoded multimedia file that has carried the private data, and the server can display it on the The webpage is provided for other users to browse, and other users click the link corresponding to the multimedia file on the webpage to initiate a download request to download the multimedia file.
例如,用户可通过社交网络客户端上传隐私数据并选择用于承载的图片,服务器通过编码将隐私数据编码到该图片中,然后在该用户的社交网络帐户对应的个人空间、微博或博客中展示该图片。该用户可通过即时通信软件告知其他用户该图片中隐藏有信息,被告知的用户即可下载该图片,对其进行解码得到隐私数据。For example, a user may upload private data through a social network client and select a picture for carrying, the server encodes the private data into the picture, and then uploads the private data in the personal space, Weibo or blog corresponding to the user's social network account Show the image. The user can inform other users that there is information hidden in the picture through the instant messaging software, and the informed user can download the picture and decode it to obtain private data.
上述将隐私数据添加到多媒体文件中的方法中,由于在编码过程只修改了多媒体文件中的最小编码单元的最低有效位,因此多媒体文件在视觉上或听觉上产生的误差较小,不易使人产生察觉,因此隐私数据被隐藏在了该多媒体文件中,隐私保护的力度则得到了提高。In the above-mentioned method of adding privacy data to a multimedia file, since only the least significant bit of the smallest coding unit in the multimedia file is modified during the encoding process, the visual or auditory error of the multimedia file is small, and it is not easy to make people Therefore, the privacy data is hidden in the multimedia file, and the intensity of privacy protection is improved.
然而,在前一实施例中,在设置多媒体文件中的最小编码单元的最低有效位的奇偶性时,采用的是随机加1或减1的方式。该方式对多媒体文件的编码造成的多媒体文件的信息熵的变化值不稳定,当信息熵的变化值较大时,则会导致多媒体文件的视觉效果或听觉效果出现失真。However, in the previous embodiment, when setting the parity of the least significant bit of the minimum coding unit in the multimedia file, a method of randomly adding or subtracting 1 is adopted. This way of encoding the multimedia file causes the change value of the information entropy of the multimedia file to be unstable. When the change value of the information entropy is large, the visual or auditory effect of the multimedia file will be distorted.
为了更进一步地减小编码后的多媒体文件出现的失真问题,在设置多媒体文件中的最小编码单元的最低有效位时,可有选择的加1操作或是减1操作,具体的:In order to further reduce the distortion problem of the encoded multimedia file, when setting the least significant bit of the smallest coding unit in the multimedia file, you can selectively add 1 or subtract 1, specifically:
根据所述二进制流对所述多媒体文件进行编码的步骤还包括:获取最小编码单元的位长度,根据位长度生成编码值参考矩阵,且最小编码单元的位长度为固定值,所述编码值参考矩阵中的元素具有统一的初始参考值。The step of encoding the multimedia file according to the binary stream further includes: obtaining the bit length of the minimum coding unit, generating a coded value reference matrix according to the bit length, and the bit length of the minimum coding unit is a fixed value, and the coded value refers to Elements in the matrix have a uniform initial reference value.
如前例中,在以图片作为载体多媒体文件的场景中,最小编码单元的位长度为8位,则最小编码单元的编码值的取值范围为[0,255],生成的编码值参考矩阵即为256×256的矩阵。该矩阵中的元素为参考值,其初始值可设置为0。若最小编码单元的位长度为N,则最小编码单元的编码值的取值范围为[0,2N-1],生成的编码值参考矩阵即为2N×2N的矩阵。As in the previous example, in the scenario where pictures are used as carrier multimedia files, the bit length of the minimum coding unit is 8 bits, and the value range of the coding value of the minimum coding unit is [0, 255]. The generated coding value reference matrix is It is a 256×256 matrix. The elements in this matrix are reference values, and their initial values can be set to 0. If the bit length of the minimum coding unit is N, the value range of the coding value of the minimum coding unit is [0, 2N -1], and the generated coding value reference matrix is a 2N × 2N matrix.
在本实施例中,则可根据该编码值参考矩阵和遍历到的比特值将对应的编码值的最低有效位加1或减1或不做操作,具体的:可根据下述公式选择嵌入函数:In this embodiment, the least significant bit of the corresponding encoded value can be added or subtracted by 1 or not operated according to the encoded value reference matrix and the traversed bit value, specifically: the embedding function can be selected according to the following formula :
其中,bi为二进制流中遍历到的第i个比特值;vi为对应的多媒体文件中序列位置为i的最小编码单元的编码值,k(vi+1,vi)为编码值参考矩阵中(vi+1,vi)位置的参考值,E1、E2和E3分别为嵌入函数,其中:Among them, bi is the ith bit value traversed in the binary stream; vi is the coding value of the minimum coding unit whose sequence position is i in the corresponding multimedia file, and k(vi +1, vi ) is the coding value The reference value of the position (vi +1,vi ) in the reference matrix, E1 , E2 and E3 are the embedding functions respectively, where:
其中,Pa(vi)为vi的最低有效位的值,N为所述最小编码单元的位长度对应的所述最小编码单元的取值范围的最大值;Wherein , Pa(vi ) is the value of the least significant bit of vi, and N is the maximum value of the value range of the minimum coding unit corresponding to the bit length of the minimum coding unit;
根据选取的嵌入函数对vi进行加1或减1或不做操作。According to the selected embedding function, add 1 or subtract 1 tovi or do nothing.
进一步的,根据选取的嵌入函数对vi进行加1或减1或不做操作的步骤之后还包括:Further, after the step of adding 1 or subtracting 1 tovi according to the selected embedding function or not doing any operation, it also includes:
若对vi为加1操作,则将编码值参考矩阵中的k(vi+1,vi+1)和k(vi-1,vi+1)加上权重值,将k(vi,vi+1)和k(vi-1,vi)减去权重值。If adding 1 to vi , then add the weight value to k(vi +1,vi+1 ) and k(vi-1 ,vi +1) in the coded value reference matrix, and k( vi ,vi+1 ) and k(vi-1 ,vi ) minus the weight value.
若对vi为减1操作,则将所述编码值参考矩阵中的k(vi-1,vi+1)和k(vi-1,vi-1)加上权重值,将k(vi,vi+1)和k(vi-1,vi)减去权重值。If the operation of subtracting 1 is performed on vi , k(vi -1, vi+1 ) and k(vi-1 , vi -1) in the coded value reference matrix are added to the weight value, and the k(vi ,vi+1 ) and k(vi-1 ,vi ) minus the weight value.
特别的,当i=0时,即序列位置为首位时,若对vi为加1操作,则仅将编码值参考矩阵中的k(vi+1,vi+1)加上权重值,将k(vi,vi+1)减去权重值;若对vi为减1操作,则仅将编码值参考矩阵中的k(vi-1,vi+1)加上权重值,将k(vi,vi+1)减去权重值。In particular, when i=0, that is, when the sequence position is the first, if the operation of adding 1 to vi is performed, only k(vi +1,vi+1 ) in the coded value reference matrix is added to the weight value , subtract the weight value from k(vi ,vi+1 ); if the operation of subtracting 1 is performed on vi , then only add weight to k(vi -1,vi+1 ) in the coded value reference matrix value, subtract the weight value from k(vi ,vi+1 ).
而当当i抵达序列位置末尾时,若对vi为加1操作,则仅将编码值参考矩阵中的k(vi-1,vi+1)加上权重值,将k(vi-1,vi)减去权重值;若对vi为减1操作,则将所述编码值参考矩阵中的k(vi-1,vi-1)加上权重值,将k(vi-1,vi)减去权重值。And when i reaches the end of the sequence position, if the operation of adding 1 to vi is performed, only k(vi-1 ,vi +1) in the coded value reference matrix is added to the weight value, and k(vi- 1 , vi ) minus the weight value; if the operation of subtracting 1 is performed on vi , then k(vi-1 , vi -1) in the coded value reference matrix is added to the weight value, and k(vi-1 ,vi ) minus the weight value.
例如,如表1所示,隐私数据的二进制流为1,0,1,1,1,0……,多媒体文件以最小编码单元分割的二进制流为10010101,01010101,11011100,00011101,01010101,00110111……,换算成十进制表示即为149,85,220,29,85,55……,则:For example, as shown in Table 1, the binary streams of privacy data are 1, 0, 1, 1, 1, 0..., and the binary streams of multimedia files divided by the smallest coding unit are 10010101, 01010101, 11011100, 00011101, 01010101, 00110111 ..., converted into decimal representation is 149, 85, 220, 29, 85, 55..., then:
当遍历到二进制流中序列位置为0的第1个比特值1时,由于编码参考值矩阵中的参考值均为0,因此k(vi+1+1,vi)=k(vi+1+1,vi+2),即k(85+1,149)=k(85+1,149+2),因此选择嵌入函数E1(vi,bi),而由于Pa(vi)=bi,因此对于149不做操作。同时,由于未对vi的编码值进行修改,因此不需要修改编码值参考矩阵。When traversing to the first bit value 1 whose sequence position is 0 in the binary stream, since the reference values in the coding reference value matrix are all 0, k(vi+1 +1,vi )=k(vi +1 +1,vi +2), namely k(85+1,149)=k(85+1,149+2), so the embedding function E1 (vi ,bi ) is selected, and since Pa(v i) = bi , so no operation is done for 149. At the same time, since the encoded value ofvi is not modified, there is no need to modify the encoded value reference matrix.
继续遍历到二进制流中序列位置为1的第2个比特值0时,由于编码参考值矩阵中的参考值仍然均为0,因此k(vi+1+1,vi)=k(vi+1+1,vi+2),即k(220+1,85)=k(220+1,85+2),即编码值参考矩阵中位置为(221,85)的参考值与位置为(221,87)的参考值相等。因此选择嵌入函数E1(vi,bi),由于Pa(vi)≠bi&vi∈(0,N),因此,可随机地对vi的编码值进行加1或减1。在应用场景中,采用加1的方式,若权重值设置为1,则需要将编码值参考矩阵中的k(vi+1,vi+1)和k(vi-1,vi+1)加上1,即将k(85+1,220)和k(149,85+1)的参考值各自加上1。同时,将k(vi,vi+1)和k(vi-1,vi)减去1,即将k(85,220)和k(149,85)的参考值各自减1。When continuing to traverse to the second bit value 0 whose sequence position is 1 in the binary stream, since the reference values in the coding reference value matrix are still all 0, k(vi+1 +1,vi )=k(vi+1 +1, vi +2), namely k(220+1,85)=k(220+1,85+2), that is, the reference value and the position of (221,85) in the coded value reference matrix The reference values at position (221,87) are equal. Therefore, the embedding function E1 (vi , bi ) is selected. Since Pa(vi )≠bi &vi ∈(0,N), the encoded value of vi can be randomly added or subtracted by 1. In the application scenario, the method of adding 1 is adopted. If the weight value is set to 1, it is necessary to refer to k(vi +1,vi+1 ) and k(vi-1 ,vi + 1) Add 1, that is, add 1 to the reference values of k(85+1,220) and k(149,85+1). At the same time, k(vi ,vi+1 ) and k(vi-1 ,vi ) are subtracted by 1, that is, the reference values of k(85,220) and k(149,85) are respectively subtracted by 1.
以上述操作遍历至隐私数据的二进制流的末尾,在每遍历到一个比特值时,则先根据编码值参考矩阵中相应的参考值选择嵌入函数来设置相应的最小编码单元的编码值的奇偶性,同时,根据设置奇偶性时采取的加1或者减1的操作调整编码值参考矩阵中相应的参考值,使得后续为了设置奇偶性在选择对最小编码单元的编码值进行加1操作还是减1操作时,需要参考以前选择的加1还是减1的操作。也就是说,并不是随机地选择加1操作还是减1操作,而是通过参考以前的操作选择的使信息熵的变化量最小的操作,从而使得失真效果得到削弱。Use the above operations to traverse to the end of the binary stream of privacy data, and when traversing to a bit value, first select the embedded function according to the corresponding reference value in the coded value reference matrix to set the parity of the coded value of the corresponding minimum coding unit , at the same time, adjust the corresponding reference value in the code value reference matrix according to the operation of adding 1 or subtracting 1 when setting the parity, so that in order to set the parity, you can choose whether to add 1 or subtract 1 to the code value of the minimum coding unit When operating, you need to refer to the previously selected operation of adding 1 or subtracting 1. That is to say, instead of randomly selecting the addition operation or the subtraction operation, the operation that minimizes the change in information entropy is selected by referring to previous operations, so that the distortion effect is weakened.
例如,若随机选择加1或减1操作,则有可能出现在图片中一块图像区域的颜色的编码值均为加1,而围绕该图像区域的临近区域的颜色的编码值均为减1,在这种情况下,该图像区域则会凸显出与其临近区域在颜色上略有不同,从而产生噪点,出现失真。而通过上述设置编码值参考矩阵并按照上述步骤选择嵌入函数的方法,则对颜色的编码值进行加1和减1的操作较平均地分布在整个图片中,不会是的某一个图像区域较明显地凸显,从而失真度较低。For example, if the operation of adding 1 or subtracting 1 is randomly selected, it is possible that the coding values of the colors in an image area in the picture are all plus 1, while the coding values of the colors in the adjacent areas surrounding the image area are all minus 1. In this case, that area of the image will stand out in a slightly different color than its neighbors, resulting in noise and distortion. And through the method of setting the coded value reference matrix and selecting the embedding function according to the above steps, the operation of adding 1 and subtracting 1 to the coded value of the color is more evenly distributed in the entire picture, and it will not be a certain image area. Visibly highlighted, resulting in low distortion.
在一个实施例中,为解决上述用户之间在传递信息或分享文件的过程的隐私保护性不高的问题,特提出了一种与前述隐私数据发送方法对应的隐私数据发送装置,如图4所示,包括:隐私数据输入模块102、多媒体文件获取模块104、多媒体文件编码模块106以及多媒体文件发送模块108,其中:In one embodiment, in order to solve the above-mentioned problem of low privacy protection in the process of transferring information or sharing files between users, a private data sending device corresponding to the aforementioned private data sending method is proposed, as shown in Figure 4 As shown, include: private data input module 102, multimedia file acquisition module 104, multimedia file encoding module 106 and multimedia file sending module 108, wherein:
隐私数据输入模块102,用于接收输入的隐私数据,获取所述隐私数据的二进制流。The privacy data input module 102 is configured to receive the input privacy data, and acquire the binary stream of the privacy data.
多媒体文件获取模块104,用于获取多媒体文件,所述多媒体文件包括最小编码单元。The multimedia file obtaining module 104 is configured to obtain a multimedia file, and the multimedia file includes a minimum coding unit.
多媒体文件编码模块106,用于根据所述二进制流对所述多媒体文件进行编码:遍历所述二进制流中的比特值,获取遍历到的比特值在所述二进制流中的序列位置,获取所述多媒体文件中与所述序列位置对应的最小编码单元的编码值,根据所述比特值设置所述编码值的最低有效位的奇偶性。The multimedia file encoding module 106 is configured to encode the multimedia file according to the binary stream: traverse the bit values in the binary stream, obtain the sequence position of the traversed bit values in the binary stream, and obtain the For the coded value of the minimum coding unit corresponding to the sequence position in the multimedia file, the parity of the least significant bit of the coded value is set according to the bit value.
多媒体文件发送模块108,用于发送所述编码后的多媒体文件。The multimedia file sending module 108 is configured to send the encoded multimedia file.
在本实施例中,隐私数据输入模块102还用于获取所述隐私数据的字节流,对所述字节流进行加密,获取加密后的字节流的二进制流。In this embodiment, the private data input module 102 is further configured to obtain a byte stream of the private data, encrypt the byte stream, and obtain a binary stream of the encrypted byte stream.
在本实施例中,如图4所示,隐私数据发送装置还包括多媒体文件展示模块110,用于生成与所述编码后的多媒体文件对应的媒体链接,通过网页展示所述编码后的多媒体文件。多媒体文件发送模块108还用于接收与所述媒体链接对应的多媒体文件下载请求,发送与所述媒体链接对应的编码后的多媒体文件。In this embodiment, as shown in Figure 4, the private data sending device further includes a multimedia file display module 110, configured to generate a media link corresponding to the encoded multimedia file, and display the encoded multimedia file through a webpage . The multimedia file sending module 108 is also configured to receive a multimedia file download request corresponding to the media link, and send the encoded multimedia file corresponding to the media link.
在本实施例中,如图4所示,隐私数据发送装置还包括参考矩阵生成模块112,用于获取所述最小编码单元的位长度,根据所述位长度生成编码值参考矩阵,且所述最小编码单元的位长度为固定值,所述编码值参考矩阵中的元素具有统一的初始参考值。多媒体文件编码模块106还用于根据所述编码值参考矩阵和所述遍历到的比特值将所述对应的编码值的最低有效位加1或减1或不做操作。In this embodiment, as shown in FIG. 4, the private data sending device further includes a reference matrix generation module 112, configured to obtain the bit length of the minimum coding unit, generate a coded value reference matrix according to the bit length, and the The bit length of the minimum coding unit is a fixed value, and the elements in the coding value reference matrix have a unified initial reference value. The multimedia file encoding module 106 is further configured to add 1 or subtract 1 to the least significant bit of the corresponding encoded value according to the encoded value reference matrix and the traversed bit values, or do no operation.
在本实施例中,多媒体文件编码模块106还用于根据下述公式选择嵌入函数:In this embodiment, the multimedia file encoding module 106 is also used to select the embedding function according to the following formula:
其中,bi为二进制流中遍历到的第i个比特值;vi为对应的多媒体文件中序列位置为i的最小编码单元的编码值,k(vi+1,vi)为编码值参考矩阵中(vi+1,vi)位置的参考值,E1、E2和E3分别为嵌入函数,其中:Among them, bi is the ith bit value traversed in the binary stream; vi is the coding value of the minimum coding unit whose sequence position is i in the corresponding multimedia file, and k(vi +1, vi ) is the coding value The reference value of the position (vi +1,vi ) in the reference matrix, E1 , E2 and E3 are the embedding functions respectively, where:
其中,Pa(vi)为vi的最低有效位的值,N为所述最小编码单元的位长度对应的所述最小编码单元的取值范围的最大值;Wherein , Pa(vi ) is the value of the least significant bit of vi, and N is the maximum value of the value range of the minimum coding unit corresponding to the bit length of the minimum coding unit;
根据选取的嵌入函数对vi进行加1或减1或不做操作。According to the selected embedding function, add 1 or subtract 1 tovi or do nothing.
在本实施例中,多媒体文件编码模块106还用于在根据选取的嵌入函数对vi进行加1操作时,则将所述编码值参考矩阵中的k(vi+1,vi+1)和k(vi-1,vi+1)加上权重值,将k(vi,vi+1)和k(vi-1,vi)减去权重值;在根据选取的嵌入函数对vi进行减1操作时,则将所述编码值参考矩阵中的k(vi-1,vi+1)和k(vi-1,vi-1)加上权重值,将k(vi,vi+1)和k(vi-1,vi)减去权重值。In this embodiment, the multimedia file coding module 106 is also configured to refer to k(vi +1,vi+1 ) and k(vi-1 ,vi +1) plus the weight value, and k(vi ,vi+1 ) and k(vi-1 ,vi ) minus the weight value; according to the selected When the embedding function subtracts 1 from vi , k(vi -1,vi+1 ) and k(vi-1 ,vi -1) in the coded value reference matrix are added to the weight value , subtract the weight value from k(vi ,vi+1 ) and k(vi-1 ,vi ).
在一个实施例中,为解决上述用户之间在传递信息或分享文件的过程的隐私保护性不高的问题,还提出了一种隐私数据接收装置,如图5所示,包括:多媒体文件接收模块202、编码值遍历模块204、隐私数据的比特值提取模块206以及隐私数据还原模块208,其中:In one embodiment, in order to solve the above-mentioned problem of low privacy protection in the process of transferring information or sharing files between users, a private data receiving device is also proposed, as shown in Figure 5, including: multimedia file receiving Module 202, code value traversal module 204, privacy data bit value extraction module 206 and privacy data restoration module 208, wherein:
多媒体文件接收模块202,用于接收多媒体文件,遍历所述多媒体文件的最小编码单元的编码值。The multimedia file receiving module 202 is configured to receive the multimedia file, and traverse the encoding values of the minimum coding unit of the multimedia file.
编码值遍历模块204,用于获取所述遍历到的最小编码单元的编码值的最低有效位。The coded value traversal module 204 is configured to obtain the least significant bit of the coded value of the traversed minimum coding unit.
隐私数据的比特值提取模块206,用于根据所述最低有效位的奇偶性获取相应的比特值。The privacy data bit value extracting module 206 is configured to acquire the corresponding bit value according to the parity of the least significant bit.
隐私数据还原模块208,用于按照所述遍历的顺序将所述获取到的比特值排列成二进制流,根据所述二进制流还原隐私数据。The private data restoration module 208 is configured to arrange the acquired bit values into a binary stream according to the traversal order, and restore private data according to the binary stream.
综上所述,实施本发明实施例,将具有如下有益效果:In summary, implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述隐私数据发送方法及装置和隐私数据接收方法及装置之后,隐私数据没有直接通过即时通信软件发送给其他终端,而是被编码到了其他多媒体文件中,以编码后的多媒体文件为载体传递了该隐私数据。即时该多媒体文件被拦截,拦截者也无法知晓该多媒体文件中包含有隐私信息,因此传递的隐私数据得到了保护,从而使得用户之间传递消息或文件的隐私保护性得到了提高。After adopting the above private data sending method and device and private data receiving method and device, the private data is not directly sent to other terminals through the instant messaging software, but is encoded into other multimedia files, and the encoded multimedia files are used as the carrier for transmission the private data. Even if the multimedia file is intercepted, the interceptor cannot know that the multimedia file contains private information, so the transmitted private data is protected, thereby improving the privacy protection of messages or files transmitted between users.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201510145174.1ACN106161021B (en) | 2015-03-30 | 2015-03-30 | Private data sending method and device and private data receiving method and device | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201510145174.1ACN106161021B (en) | 2015-03-30 | 2015-03-30 | Private data sending method and device and private data receiving method and device | 
| Publication Number | Publication Date | 
|---|---|
| CN106161021Atrue CN106161021A (en) | 2016-11-23 | 
| CN106161021B CN106161021B (en) | 2020-03-20 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN201510145174.1AActiveCN106161021B (en) | 2015-03-30 | 2015-03-30 | Private data sending method and device and private data receiving method and device | 
| Country | Link | 
|---|---|
| CN (1) | CN106161021B (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN107276746A (en)* | 2017-07-19 | 2017-10-20 | 河南神州数码索贝科技有限公司 | A kind of Chinese character encipher-decipher method | 
| CN109257325A (en)* | 2017-07-13 | 2019-01-22 | 北京陌陌信息技术有限公司 | Transmit the method, apparatus and computer readable storage medium of private information | 
| CN111382452A (en)* | 2020-02-25 | 2020-07-07 | 南通大学 | An encryption method for converting Chinese characters to pictures | 
| CN116208719A (en)* | 2022-12-28 | 2023-06-02 | 青岛云天励飞科技有限公司 | Image transmission method, device, electronic device and storage medium | 
| CN118300903A (en)* | 2024-06-06 | 2024-07-05 | 贵州航天控制技术有限公司 | Method for reconstructing communication data by matrix coding | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN101304522A (en)* | 2008-06-20 | 2008-11-12 | 中国民航大学 | A large-capacity information hiding method based on JPEG2000 compressed image | 
| CN101527830A (en)* | 2008-03-07 | 2009-09-09 | 华为技术有限公司 | Method and device for embedding watermarking information and method and device for authenticating watermarking information | 
| CN101866478A (en)* | 2010-06-22 | 2010-10-20 | 北京大学 | A Watermark Embedding and Extraction Method in Digital Image | 
| CN102014239A (en)* | 2009-09-08 | 2011-04-13 | 周岩 | High-capacity steganographic method based on JPEG (Joint Photographic Experts Group) digital image | 
| CN102256184A (en)* | 2011-07-21 | 2011-11-23 | 杭州海康威视软件有限公司 | Space-domain-digital-watermark-based YUV file storage and play methods and devices | 
| CN102522089A (en)* | 2011-12-02 | 2012-06-27 | 华中科技大学 | Information embedding and extracting method for G.723.1 voice coder | 
| CN104021517A (en)* | 2014-06-20 | 2014-09-03 | 宁波大学 | Low-modification-rate digital image steganography method | 
| CN104123945A (en)* | 2014-06-12 | 2014-10-29 | 华中科技大学 | Embedding method and extracting method for wav-format audio information | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN101527830A (en)* | 2008-03-07 | 2009-09-09 | 华为技术有限公司 | Method and device for embedding watermarking information and method and device for authenticating watermarking information | 
| CN101304522A (en)* | 2008-06-20 | 2008-11-12 | 中国民航大学 | A large-capacity information hiding method based on JPEG2000 compressed image | 
| CN102014239A (en)* | 2009-09-08 | 2011-04-13 | 周岩 | High-capacity steganographic method based on JPEG (Joint Photographic Experts Group) digital image | 
| CN101866478A (en)* | 2010-06-22 | 2010-10-20 | 北京大学 | A Watermark Embedding and Extraction Method in Digital Image | 
| CN102256184A (en)* | 2011-07-21 | 2011-11-23 | 杭州海康威视软件有限公司 | Space-domain-digital-watermark-based YUV file storage and play methods and devices | 
| CN102522089A (en)* | 2011-12-02 | 2012-06-27 | 华中科技大学 | Information embedding and extracting method for G.723.1 voice coder | 
| CN104123945A (en)* | 2014-06-12 | 2014-10-29 | 华中科技大学 | Embedding method and extracting method for wav-format audio information | 
| CN104021517A (en)* | 2014-06-20 | 2014-09-03 | 宁波大学 | Low-modification-rate digital image steganography method | 
| Title | 
|---|
| H.B.KEKRE等: "Information Hiding in Audio Signals", 《INTERNATIONAL JOURNAL OF COMPUTER APPLICATIONS (0975-8887)》* | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN109257325A (en)* | 2017-07-13 | 2019-01-22 | 北京陌陌信息技术有限公司 | Transmit the method, apparatus and computer readable storage medium of private information | 
| CN107276746A (en)* | 2017-07-19 | 2017-10-20 | 河南神州数码索贝科技有限公司 | A kind of Chinese character encipher-decipher method | 
| CN111382452A (en)* | 2020-02-25 | 2020-07-07 | 南通大学 | An encryption method for converting Chinese characters to pictures | 
| CN116208719A (en)* | 2022-12-28 | 2023-06-02 | 青岛云天励飞科技有限公司 | Image transmission method, device, electronic device and storage medium | 
| CN118300903A (en)* | 2024-06-06 | 2024-07-05 | 贵州航天控制技术有限公司 | Method for reconstructing communication data by matrix coding | 
| CN118300903B (en)* | 2024-06-06 | 2024-09-17 | 贵州航天控制技术有限公司 | Method for reconstructing communication data by matrix coding | 
| Publication number | Publication date | 
|---|---|
| CN106161021B (en) | 2020-03-20 | 
| Publication | Publication Date | Title | 
|---|---|---|
| US9621526B2 (en) | Content encryption and decryption | |
| CN105426709B (en) | Private information communication means based on jpeg image Information hiding and system | |
| CN110138739B (en) | Data information encryption method and device, computer equipment and storage medium | |
| CN106161021A (en) | Private data sending method and device, private data method of reseptance and device | |
| US9502003B2 (en) | Apparatus and methods to display a modified image | |
| CN110019075B (en) | Log encryption method and device and log decryption method and device | |
| CN111431716B (en) | Data transmission method and device, computer equipment and storage medium | |
| US20230208615A1 (en) | Online-Streamer Image Model File Transmission in Co-Hosting During Livestreaming | |
| CN105025102B (en) | The network storage call method and storage system of a kind of 3D printing model file | |
| US11929993B2 (en) | System, method and application for transcoding data into media files | |
| US20170353842A1 (en) | Secure communications via a mobile keyboard application of a mobile device | |
| CN104243149A (en) | Encrypting and decrypting method, device and server | |
| CN107155113B (en) | A method and server for protecting bullet screen information | |
| CN113014580A (en) | File transmission method and device, electronic equipment and storage medium | |
| Reshma et al. | Pairing-free CP-ABE based cryptography combined with steganography for multimedia applications | |
| Jain et al. | Secret data transmission using vital image steganography over transposition cipher | |
| US8989432B2 (en) | System and method of adding a watermark to a JPEG image file | |
| CN115168883A (en) | String encryption method, device, terminal device and storage medium | |
| CN109120576B (en) | Data sharing method and device, computer equipment and storage medium | |
| CN111131270B (en) | Data encryption and decryption method and device, electronic equipment and storage medium | |
| CN117156061A (en) | Data processing method and device, electronic equipment and storage medium | |
| CN115913519A (en) | Image-based data encryption transmission method, device and electronic equipment | |
| US9571468B2 (en) | Encoding data using a variable number of pixels and bits based on entropy | |
| CN104363584B (en) | A kind of method, apparatus and terminal of short message Encrypt and Decrypt | |
| CN114357520A (en) | File generation method and device, file encoding information transmission method and device | 
| Date | Code | Title | Description | 
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |