WO2019085076A1 - 金融app界面的水印嵌入方法、装置、设备及存储介质 - Google Patents

金融app界面的水印嵌入方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2019085076A1
WO2019085076A1 PCT/CN2017/112555 CN2017112555W WO2019085076A1 WO 2019085076 A1 WO2019085076 A1 WO 2019085076A1 CN 2017112555 W CN2017112555 W CN 2017112555W WO 2019085076 A1 WO2019085076 A1 WO 2019085076A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
interface
area
app
user information
Prior art date
Application number
PCT/CN2017/112555
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 平安科技(深圳)有限公司
Publication of WO2019085076A1 publication Critical patent/WO2019085076A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Definitions

  • the present application belongs to the field of financial APP technology, and more particularly to a watermark embedding method, device, device and storage medium for a financial APP interface.
  • the watermark is only the LOGO of the company. If the data is illegally transmitted, it cannot identify which user is transmitting, and cannot play the role of traceability.
  • the APP with watermark some The watermark blocks the control, which is not conducive to the user's operation, and is not beautiful. Some of them are that the control blocks the watermark and cannot extract the watermark information, which makes it impossible to trace the source.
  • the embodiments of the present application provide a watermark embedding method, apparatus, device, and storage medium for a financial APP interface.
  • a first aspect of the embodiments of the present application provides a watermark embedding method for a financial APP interface, where the method includes the following steps:
  • the second aspect of the present application provides a watermark embedding device of a financial APP interface, where the watermark embedding device includes:
  • a watermark generating module configured to acquire user information for logging in to the financial APP, and generate a watermark according to the user information
  • control area obtaining module configured to acquire an interface area of a control on an interface of the financial APP
  • a watermark setting module configured to set the watermark on an interface of the financial APP, and perform a control detection on a region of the watermark, and if the watermark region and the interface region of the control have a coincident region, move The watermark causes at most one coincidence point for the area of the watermark and the interface area of the control.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the The following steps are implemented when the computer readable instructions are described:
  • a fourth aspect of the embodiments of the present application is a computer readable storage medium storing computer readable instructions, wherein the computer readable instructions are executed by a processor to implement the following steps:
  • the watermark embedding method, device, device and storage medium provided by the embodiment of the present application have the beneficial effects of: acquiring the information of the logged-in user, generating a watermark according to the information of the user, so that the watermark can function as a trace source, and generate The area of the watermark is detected by the control. If the watermark overlaps with the control, the watermark is moved and adjusted along the preset direction, so that the watermark does not overlap with the control, which is convenient for the user to operate.
  • FIG. 1 is a flowchart of a watermark embedding method of a financial APP interface according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of an interface of a watermark embedding method of a financial APP interface according to an embodiment of the present disclosure
  • FIG. 3 is another schematic diagram of a watermark embedding method of a financial APP interface according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of a watermark embedding method of a financial APP interface according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface of a watermark embedding method of a financial APP interface according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a method for embedding a watermark of a financial APP interface according to another embodiment of the present application.
  • FIG. 7 is a structural block diagram of a watermark embedding apparatus of a financial APP interface according to still another embodiment of the present application.
  • FIG. 8 is another structural block diagram of a watermark embedding device of a financial APP interface according to another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal device according to another embodiment of the present disclosure.
  • Financial APP includes APPs used by companies in the financial sector such as banks, securities, insurance, trusts, etc. Since the data involved in these APPs is very important, how to prevent illegal transmission of data is a problem that every company is very concerned about, and it must be guaranteed by users. legality. In the event that data is illegally transmitted, it is necessary to trace the illegally transmitted data to recover the company's losses.
  • a watermark embedding method of a financial APP interface provided by an embodiment of the present application includes the following steps:
  • Step S100 Acquire user information for logging in to the financial APP, and generate a watermark according to the user information.
  • the user information of the financial APP is stored in a back-end third-party user information database associated with the financial APP, and information management is performed by a company that uses the financial APP, and when there is a new employee, the employee is employed.
  • the employee's information is entered into the database.
  • the employee who has left the company is removed from the database to protect the update status of the database.
  • the financial APP After obtaining the information input by the user, the financial APP compares with the user information database of the company selected by the user, and if the user login information has unique data corresponding to the user information database, it is determined to exist in the user information database.
  • the user is a legitimate user of the company, allowing the user to perform a login operation; if the user login information has no data corresponding to the user information database, it is determined that the user does not exist in the user information database, and the user is an illegal user of the company or not
  • the user who has opened the authority in the company refuses to log in to the financial APP, so that the user cannot obtain the relevant data of the financial APP, guarantee the legitimacy of the user, prevent the illegal user from obtaining the data of the company, and cause losses to the company.
  • the watermark is generated according to the information of the logged-in user. It is understood that the watermark here is a watermark of ordinary meaning, not a digital watermark, which can be seen on the financial APP, has a certain shape and area, and can be round , rectangles, squares, ellipses, or other shapes.
  • the generating the watermark according to the user information may firstly generate the label of the user information, and then put the generated label into the preset layer, and finally, the generated label is overlapped with the preset layer.
  • the preset layer covers the entire APP interface.
  • Step S101 Acquire an interface area of a control on an interface of the financial APP.
  • a coordinate system may be formed on the interface of the financial APP, and an interface area of the control may be acquired by acquiring coordinates on the coordinate system.
  • the interface area of the control may be calculated by acquiring the center coordinate of the control and related parameters. The area is obtained.
  • the shape of the control can be a circle, a rectangle, a square, an ellipse or other shapes. Take the circular control as an example. As shown in Figure 2, the coordinates of the center of the control and the circle are obtained by taking the lower left corner of the APP interface as the coordinate origin.
  • the coordinates of a point on the edge, the distance between the two coordinate lines is the radius of the circular control, so that the area of the control can be obtained by the formula, and the interface area of the control is also known. If the shape of the control is a rectangle or other graphic, the edge coordinate of the control may be obtained, the interface area of the control may be determined according to the edge coordinate, and the image to be recognized may be obtained according to the color feature and coordinates of each pixel in the image to be identified. The outline of the graphics area contained in it.
  • Step S102 setting the watermark on the interface of the financial APP, and performing control detection on the area of the watermark. If the area of the watermark and the interface area of the control have a coincident area, moving the watermark There is at most one coincidence point between the area of the watermark and the interface area of the control.
  • the coincidence area means that the coordinates of the watermark area and the coordinates of the control have at least one identical coordinate; the coincidence point refers to the point where the coordinates of the watermark area are the same as the coordinates of the control.
  • a watermark may be set on the interface of the financial APP according to a certain rule.
  • the interface of the financial APP is divided into N*N regions. For example, if the value of N is 3, the watermark is set in 9 regions of the interface. Inside.
  • the detection of the area generated by the watermark is performed.
  • the coordinates of the watermark area and the coordinates of the control may be respectively obtained to determine whether there is a coincident area between the area of the watermark and the interface area of the control.
  • the coordinates of the watermark area and the interface area coordinates of the control may be separately obtained, and the coordinates of the watermark area and the interface area coordinates of the control are compared.
  • the judgment result is that the coordinates of more than one are the same, the interface of the watermark area and the control is determined. There is a coincident area in the area.
  • the moving watermark causes the watermark area to have at most one coincidence point with the interface area of the control.
  • the direction in which the watermark moves is moved parallel to the control, so that the watermark remains in the original direction and is consistent with the direction of the other watermarks.
  • the direction in which the watermark is moved is the direction in which the watermark is moved to the shortest distance that has only one coincidence point with the interface coordinates of the control. As shown in FIG. 3, the watermark moves in the direction of its vertical axis and moves to the position A with the shortest distance.
  • the area of the watermark and the interface area of the control may have a coincidence point or no coincidence point. Specifically, the movement distance of the watermark is not far beyond the interface of the financial APP, so that the watermark is always kept within the interface of the APP, so that the watermark is The content display is complete, and it can be determined whether the watermark remains at the interface of the APP by whether the area coordinate of the watermark exceeds the range of the coordinate system. Within the process of moving, when the watermark moves to the edge of the coordinate system, all the watermarks can be further reduced, so that the area of the watermark does not exceed the range of the APP interface.
  • the interface area of the control is obtained, and it is determined whether the watermarked area has a coincident area with the interface area of the control. If there is a coincident area, the watermark is moved outside the interface area of the control, so that the watermark does not block the control. Convenient for user operations of financial apps.
  • FIG. 4 is a schematic flowchart diagram of a watermark embedding method of a financial APP interface provided by another embodiment of the present application.
  • Step S200 Acquire user information for logging in to the financial APP, and generate a watermark according to the user information.
  • Step S201 Acquire an interface area of a control on an interface of the financial APP.
  • Step S202 setting the watermark on the interface of the financial APP, and performing control detection on the area of the watermark. If the area of the watermark and the interface area of the control have a coincident area, moving the watermark There is at most one coincidence point between the area of the watermark and the interface area of the control.
  • Steps S200 to S202 may be described with reference to the embodiment shown in FIG. 1, and details are not described herein again.
  • Step S203 performing character detection on the area of the watermark, and determining whether the area of the watermark overlaps with the character part.
  • Step S204 if the area of the watermark overlaps with the character, continue to move the watermark in a preset direction until the area of the watermark does not include characters. If the watermark is detected to be beyond the APP interface, The watermark is reduced such that the watermark is located within the APP interface.
  • the preset direction is preferably the vertical axis direction of the watermark
  • the direction C is the direction of moving the watermark to the shortest distance outside the control interface area
  • the direction D is the opposite direction of the direction C
  • the moving direction of the watermark preferentially moves to the direction C, when It is detected that it overlaps with the character portion and continues to move in the direction C until the character of the watermark is not detected.
  • the moving distance of the watermark is not far beyond the interface of the financial APP, so that the watermark is always kept within the interface of the APP, so that the content of the watermark is displayed intact. It is also possible to further reduce all watermarks so that the area of the watermark does not exceed the scope of the APP interface.
  • the watermark when the watermark always detects the character in the direction C, the watermark can be moved in the direction D.
  • the watermark is made outside the interface area of the control, no characters are detected in the area of the watermark, and the area of the watermark does not exceed the range of the APP interface.
  • the preset direction is preferentially the direction of the vertical axis of the watermark, and may also be other preset directions, for example, a direction at an angle to the vertical axis direction of the watermark.
  • the watermark is detected by moving the watermark outside the control interface area. If the character is detected, the watermark continues to move along the preset direction, so that no characters are detected in the watermark area and are always displayed.
  • the watermark display is complete, and the watermark is extracted conveniently, and the watermark does not obscure the control and does not obscure the characters, which is convenient for the user to use.
  • FIG. 6 is a schematic flowchart diagram of a watermark embedding method of a financial APP interface provided by another embodiment of the present application.
  • Step S300 Acquire user information that is logged in to the financial APP, and generate a watermark according to the user information.
  • Step S301 acquiring an interface area of a control on an interface of the financial APP
  • Step S302 setting the watermark on the interface of the financial APP, and performing control detection on the area of the watermark. If the area of the watermark and the interface area of the control have a coincident area, moving the watermark There is at most one coincidence point between the area of the watermark and the interface area of the control.
  • Step S303 performing character detection on the area of the watermark, and determining whether the area of the watermark overlaps with the character part.
  • Step S304 if the area of the watermark overlaps with the character part, continue to move the watermark in a preset direction until the area of the watermark does not include characters, and if the watermark is detected to be beyond the APP interface, The watermark is reduced such that the watermark is located within the APP interface.
  • Steps S300 to S302 reference may be made to the description of the embodiment shown in FIG. 1.
  • Steps S303 to S304 may refer to the description of the embodiment shown in FIG. 4, and details are not described herein again.
  • Step S305 when detecting a screen capture operation on the APP interface, performing rights verification on the user information, and if the user information does not pass the rights check, generating a digital watermark according to the user information and A digital watermark is embedded in the interface of the financial APP.
  • the screen capture operation here may be triggered by hardware or software.
  • the APP detects that the mobile phone has a screen capture operation, the user who logs in the financial APP is checked for rights.
  • the user rights herein may be divided into an advanced user and an ordinary user.
  • the screen capture operation may be performed normally.
  • a digital watermark is generated according to the user information, and the original digital watermark on the financial APP interface is scrambled and encrypted, and the digital watermark is embedded in the interface of the financial APP.
  • there are various methods for generating a digital watermark including: a spatial domain watermark, a frequency domain watermark, and a time domain/ The frequency domain watermark and the inter-/watermark watermark are used in the embodiment of the present application.
  • the initial watermark information that can be embedded into the original information can be generated according to the user information; then the location is changed according to a preset rule, and the spread spectrum processing is performed. Finally, digital watermark information is generated.
  • the scrambling encryption of the digital watermark can be performed in various ways.
  • the embodiment of the present application adopts Arnold's scrambling encryption method based on chaotic mapping.
  • the watermark embedding method of the financial APP interface provided by the embodiment of the present application makes the watermark not obscure the control and the character, facilitates the user's operation and the extraction of the digital watermark information, and at the same time, when the screen capture operation is detected, the digital watermark is generated according to the user information,
  • the digital watermark performs scrambling encryption and embeds the digital watermark into the interface of the financial APP, thereby improving the security of the data.
  • FIG. 7 shows a structural block diagram of a watermark embedding device of a financial APP interface.
  • the watermark embedding device 40 includes a watermark generating module 401, a control region obtaining module 402, and a watermark setting module 403.
  • the watermark generating module 401 is configured to obtain user information for logging in to the financial APP, and generate a watermark according to the user information.
  • the user information of the financial APP is stored in a background third party user information database associated with the financial APP, and the watermark generating module 401 obtains the information input by the user, and compares with the user information database of the company selected by the user. If the user login information has unique data corresponding to the user information database, it is determined to exist in the user information database, the user is a legitimate user of the company, and the user is allowed to perform a login operation; if the user login information is in the user information database If there is no data corresponding to it, it is judged that it does not exist in the user information database, and the user is an illegal user of the company or a user who does not have permission in the company, and the user is denied to log in to the financial APP.
  • the control area obtaining module 402 is configured to acquire an interface area of the control on the interface of the financial APP.
  • control region obtaining module 402 forms a coordinate system on the interface of the financial APP, and acquires an interface region of the control by acquiring coordinates on the coordinate system.
  • a watermark setting module 403 configured to set the watermark on an interface of the financial APP, and perform a control detection on the area of the watermark, if there is a coincident area between the area of the watermark and the interface area of the control, Moving the watermark such that at least one coincidence point exists between the area of the watermark and the interface area of the control, and if the watermark exceeds the APP interface, the watermark is reduced, so that the watermark is located at the APP interface.
  • the watermark setting module 403 can set a watermark on the interface of the financial APP according to a certain rule. For example, the interface of the financial APP is divided into N*N regions. For example, if the value of N is 3, the watermark is set. Within 9 areas of the interface.
  • the watermark setting module 403 can determine whether there is a coincident area between the area of the watermark and the interface area of the control by respectively acquiring the coordinates of the watermark area and the coordinates of the control. For example, the watermark setting module 403 can separately acquire the watermark area The coordinates of the domain and the coordinates of the interface area of the control compare the coordinates of the watermark area with the coordinates of the interface area of the control. When the result of the judgment is that the coordinates of more than one are the same, it is determined that there is a coincident area between the area of the watermark and the interface area of the control.
  • the moving watermark causes the watermarked area to have at most one coincidence point with the interface area of the control.
  • the direction in which the watermark moves is moved parallel to the control, so that the watermark remains in the original direction and is consistent with the direction of the other watermarks.
  • the direction in which the watermark is moved is the direction in which the watermark is moved to the shortest distance that has only one coincidence point with the interface coordinates of the control.
  • the watermark setting module 403 moves the watermark to the farthest distance of the financial APP, so that the watermark is always kept within the interface of the APP, so that the content of the watermark is completely displayed, and the watermark can be determined by whether the area coordinate of the watermark exceeds the range of the coordinate system. Whether it is kept within the interface of the APP, when the watermark moves to the edge of the coordinate system during the movement, all the watermarks can be further reduced, so that the area of the watermark does not exceed the range of the APP interface.
  • the watermark embedding device 40 may further include a character detecting module 404, as shown in FIG. 8, wherein the character detecting module 404 is configured to perform character detection on the area of the watermark, and determine whether the area of the watermark is related to the character part. overlapping. Specifically, the character detecting module 404 respectively finds two endpoint values of the largest and smallest horizontal and vertical coordinates in the currently known watermark region, and obtains the maximum and minimum horizontal and vertical coordinates of the character region on the interface of the financial APP. The endpoint value, if the horizontal and vertical coordinate range of the watermark region overlaps with the horizontal and vertical coordinate ranges of the character region, determines that the watermark region overlaps with the character portion.
  • the watermark setting module 403 is further configured to continue to move the watermark in a preset direction when the portion of the watermark overlaps with the character until the watermark region does not include a character, if the watermark exceeds the The APP interface reduces the watermark so that the watermark is located in the APP interface.
  • the watermark setting module 403 moves the watermark outside the control interface area, if the overlap with the character is detected, the watermark continues to move in the preset direction.
  • the preset direction is preferably the vertical axis direction of the watermark until the character of the watermark is not detected.
  • the moving distance of the watermark is not far beyond the interface of the financial APP, so that the watermark is always kept within the interface of the APP, so that the content of the watermark is displayed intact. It is also possible to further reduce all watermarks so that the area of the watermark does not exceed the scope of the APP interface.
  • the watermark embedding device of the financial APP interface provided by the embodiment of the present application generates a watermark according to the information of the user by acquiring the information of the logged-in user, so that the watermark can play a role of traceability, and the control and the character are respectively detected in the watermark generating region. If the watermark overlaps with the control or the character, the watermark is moved and adjusted along the preset direction, so that the watermark does not overlap with the control and the character, which is convenient for the user's operation and also protects the data security.
  • Another embodiment of the present application provides a computer readable storage medium having stored thereon computer readable instructions that, when executed by a processor, implement a watermark of a financial APP interface in the above embodiments
  • the embedding method, to avoid repetition, will not be described here.
  • the computer readable instructions are implemented by the processor to implement the above
  • the function of each module/unit in the watermark embedding device of the financial APP interface is not repeated here to avoid repetition.
  • FIG. 9 shows a schematic diagram of a terminal device of the present embodiment.
  • the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and operable on the processor 60.
  • the processor 60 executes the computer readable instructions 62 to implement the various steps of the watermark embedding method of the financial APP interface in the above embodiments, such as steps S100, S101 and S102 shown in FIG.
  • the processor 60 executes the computer readable instructions 62, the functions of the modules/units of the watermark embedding device of the financial APP interface in the above embodiments are implemented.
  • computer readable instructions 62 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 61 and executed by processor 60 to complete the application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 62 in the terminal device 6.
  • computer readable instructions 62 may be partitioned into functions of watermark generation module 401, control region acquisition module 402, and watermark settings module 403 as shown in FIG.
  • the terminal device 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, the processor 60, the memory 61. It will be understood by those skilled in the art that FIG. 9 is only an example of the terminal device 6, and does not constitute a limitation of the terminal device 6, and may include more or less components than those illustrated, or combine some components, or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor 60 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on.
  • the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is used to store computer readable instructions and other programs and data required by the terminal device.
  • the memory 61 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium.
  • the computer readable instructions when executed by a processor, may implement the steps of the various method embodiments described above.
  • the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like.
  • the computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • a recording medium a USB flash drive
  • a removable hard drive a magnetic disk, an optical disk
  • a computer memory a read only memory (ROM, Read-Only) Memory
  • RAM random access memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本申请属于金融APP技术领域,提供一种金融APP界面的水印嵌入方法、装置、设备及存储介质,通过获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;获取所述金融APP的界面上的控件的界面区域;在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,使添加的水印不遮挡控件,方便用户操作,同时能顺利进行水印的提取溯源,保护数据安全。

Description

金融APP界面的水印嵌入方法、装置、设备及存储介质
本专利申请以2017年10月31日提交的申请号为201711049633.1,名称为“金融APP界面的水印嵌入方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。
技术领域
本申请属于金融APP技术领域,更具体地说,是涉及一种金融APP界面的水印嵌入方法、装置、设备及存储介质。
背景技术
随着社会的进步,手机APP的使用也越来越广泛,数据的使用和传播也越来越频繁,APP特别是金融APP的数据安全越来越受到人们的重视。
目前APP的界面上很少具有水印,有水印也只是公司的LOGO,如果数据受到非法传输,则无法识别出是哪个用户传输的,无法起到溯源的作用,另外,具有水印的APP,有的水印挡住了控件,不利于用户的操作,也不美观,有的则是控件挡住了水印,无法对水印信息进行提取,导致无法起到溯源的作用。
发明内容
为克服现有技术中存在的问题,本申请实施例提供一种金融APP界面的水印嵌入方法、装置、设备及存储介质。
本申请实施例第一方面提供一种金融APP界面的水印嵌入方法,所述方法包括以下步骤:
获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
获取所述金融APP的界面上的控件的界面区域;
在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
本申请第二方面提供一种金融APP界面的水印嵌入装置,所述水印嵌入装置包括:
水印生成模块,用于获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
控件区域获取模块,用于获取所述金融APP的界面上的控件的界面区域;
水印设置模块,用于在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
本申请实施例第三方面提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
获取所述金融APP的界面上的控件的界面区域;
在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
本申请实施例第四方面一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:
获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
获取所述金融APP的界面上的控件的界面区域;
在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
本申请实施例提供的金融APP界面的水印嵌入方法、装置、设备及存储介质的有益效果在于:通过获取登陆用户的信息,根据用户的信息生成水印,使水印可以起到溯源的作用,对生成水印的区域进行控件的检测,若水印与控件相重叠,则将水印沿预设方向移动调整,使水印与控件不重叠,方便用户的操作。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一个实施例提供的金融APP界面的水印嵌入方法的流程图;
图2为本申请一个实施例提供的金融APP界面的水印嵌入方法的界面示意图;
图3为本申请一个实施例提供的金融APP界面的水印嵌入方法的另一界面示意图;
图4为本申请又一个实施例提供的金融APP界面的水印嵌入方法的流程图;
图5为本申请又一个实施例提供的金融APP界面的水印嵌入方法的界面示意图;
图6为本申请又一个实施例提供的金融APP界面的水印嵌入方法的流程图;
图7为本申请又一个实施例提供的金融APP界面的水印嵌入装置的结构方框图;
图8为本申请又一个实施例提供的金融APP界面的水印嵌入装置的另一结构方框图;
图9为本申请又一个实施例提供的终端设备的结构示意图。
具体实施方式
为了使本申请所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
金融APP包括银行、证券、保险、信托等金融领域公司所使用的APP,由于这些APP涉及的数据非常重要,因此,如何防止数据被非法传输是各个公司都十分关注的问题,必须要保证用户的合法性。万一数据遭到非法传输,需要对非法传输的数据进行溯源,挽回公司的损失。
请参考图1,本申请实施例提供的金融APP界面的水印嵌入方法包括以下步骤:
步骤S100,获取登陆所述金融APP的用户信息,根据所述用户信息生成水印。
作为一种实施方式,金融APP的用户信息是存储在与该金融APP相关联的后台第三方用户信息数据库中,由使用该金融APP的公司进行信息管理,当有新入职员工时,将该入职员工的信息录入到该数据库中,当有员工离职时,将离职的员工从该数据库中删除,保护该数据库的更新状态。
金融APP获取用户输入的信息后,与用户所选择的公司的用户信息数据库进行比较,若用户登陆信息在用户信息数据库中有唯一的数据与之对应时,则判断为存在于用户信息数据库中,用户为该公司的合法用户,允许用户进行登陆操作;若用户登陆信息在用户信息数据库中无数据与之对应时,则判断为不存在于用户信息数据库中,用户为该公司的非法用户或未在该公司开通权限的用户,拒绝用户登陆金融APP,使用户无法获取金融APP的相关数据,保证用户的合法性,防止非法用户获取公司的数据资料,给公司造成损失。
用户登陆成功后,根据登陆用户的信息生成水印,需要理解的是,这里的水印是普通意义的水印,不是数字水印,可以在金融APP上看到,有一定的形状和区域,可以为圆形、长方形、正方形、椭图形或者其他形状。
具体的,根据用户信息生成水印可以是先将用户信息生成标签,再将生成的标签放到预设图层中,最后将生成的标签与预设图层重叠呈现。其中,预设的图层覆盖整个APP界面。
步骤S101,获取所述金融APP的界面上的控件的界面区域。
作为一种实施方式,可以将金融APP的界面上形成坐标系,通过获取坐标系上的坐标获取控件的界面区域,例如,控件的界面区域可以是通过获取控件的中心坐标和相关参数计算出其面积得到。控件的形状可以是圆形、长方形、正方形、椭图形或者其他形状,以圆形控件为例,如图2所示,以APP界面的左下角为坐标原点,获取控件中心位置的坐标和圆形边上一个点的坐标,两个坐标连线的距离就是圆形控件的半径,这样通过公式就可以获取到控件的面积,也就知道了控件的界面区域。如果控件的形状为长方形或者其他图形,可以通过获取控件的边缘坐标,根据边缘坐标确定控件的界面区域,也可以根据待识别图像中的各像素点的颜色特征和坐标,获得所述待识别图像中包含的图形区域的轮廓。
步骤S102,在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
其中,重合区域是指水印区域的坐标与控件的坐标存在至少一个相同的坐标;重合点是指水印区域的坐标与控件的坐标相同的点。
在步骤S102中,可以根据一定的规则在金融APP的界面上设置水印,例如,将金融APP的界面分成N*N个区域,例如,N取值为3,则将水印设置在界面9个区域内。
对水印生成的区域进行控件的检测,作为一种实施方式,可以通过分别获取水印区域的坐标和控件的坐标来判断水印的区域与控件的界面区域是否存在重合区域。例如,可以分别获取水印区域的坐标和控件的界面区域坐标,将水印区域的坐标和控件的界面区域坐标进行比较,当判断结果为存在大于一个的坐标相同时,判断水印的区域与控件的界面区域存在重合区域。
当判断结果为水印的区域与控件的界面区域存在重合区域时,移动水印使水印的区域与控件的界面区域最多存在一个重合点。优选的,水印移动的方向相对控件平行向外移动,使水印保持原来的方向并与其他水印的方向一致。优选的,使水印移动的方向是将水印移至与控件的界面坐标只有一个重合点的最短的距离的方向。如图3所示,水印沿着其垂直轴的方向移动并移动到位置A的距离最短。
水印的区域与控件的界面区域可以存在一个重合点,也可以没有重合点,具体的,水印的移动距离最远不超出金融APP的界面,使水印始终保持在APP的界面之内,使水印的内容显示完整,可以通过水印的区域坐标是否超出坐标系的范围判定水印是否保持在APP的界面 之内,在移动的过程中,当水印移动至坐标系的边缘时,还可以将所有的水印进一步缩小,使水印的区域不超出APP界面的范围。
本申请实施例通过获取控件的界面区域,判断设置水印的区域是否与控件的界面区域存在重合区域,如果存在重合区域,则将水印移动至控件的界面区域之外,使水印不会遮挡控件,方便金融APP的用户操作。
请参考图4,其示出了本申请另一实施例提供的金融APP界面的水印嵌入方法的流程示意图。
步骤S200,获取登陆所述金融APP的用户信息,根据所述用户信息生成水印。
步骤S201,获取所述金融APP的界面上的控件的界面区域。
步骤S202,在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
步骤S200至步骤S202可以参考图1所示的实施例说明,这里不再赘述。
步骤S203,对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠。
由于金融APP的界面上存在字符,为了避免水印将字符遮挡,对水印的区域进行字符检测,获取字符在界面坐标系中的坐标范围,判断字符的界面坐标范围是否与水印的区域的界面坐标范围有重合,具体的,在目前已知的水印的区域中分别找到其横纵坐标最大和最小的两个端点值,并获取金融APP的界面上字符区域的横纵坐标最大和最小的两个端点值,如果水印的区域的横纵坐标范围与字符区域的横纵坐标范围均重叠,则判定水印的区域与字符部分重叠。
步骤S204,若所述水印的区域内与字符部分重叠,则继续将所述水印沿预设方向移动直至所述水印的区域不包括字符,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
如图5所示,当水印移至控件界面区域之外时,检测到与字符部分重叠,则继续将水印沿预设方向移动。其中,预设方向优选为水印的垂直轴方向,方向C是将水印移到控件界面区域之外最短距离的方向,方向D是方向C的相反方向,水印的移动方向优先向方向C移动,当检测到与字符部分重叠,继续朝方向C移动,直至水印的区域没有检测到字符为止。水印的移动距离最远不超出金融APP的界面,使水印始终保持在APP的界面之内,使水印的内容显示完整。还可以将所有的水印进一步缩小,使水印的区域不超出APP界面的范围。
作为一种实施方式,当水印朝方向C始终检测到字符时,则可以将水印沿方向D移动, 使水印在控件的界面区域之外、水印的区域没有检测到字符且水印的区域不超出APP界面的范围。
可以理解的是,预设方向优先为水印垂直轴的方向,还可以是其他预设方向,例如是与水印垂直轴方向成一定角度的方向。
本申请实施例通过将水印移至控件界面区域之外后对水印的区域进行字符检测,如果检测到字符,则将水印继续沿预设方向移动,使水印区域内不检测到字符并始终显示在APP界面范围之内,这样水印显示完整,方便水印的提取,且水印不遮挡控件的同时也不遮挡字符,方便用户的使用。
请参考图6,其示出了本申请另一实施例提供的金融APP界面的水印嵌入方法的流程示意图。
步骤S300,获取登陆所述金融APP的用户信息,根据所述用户信息生成水印。
步骤S301,获取所述金融APP的界面上的控件的界面区域
步骤S302,在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
步骤S303,对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠。
步骤S304,若所述水印的区域内与字符部分重叠,则继续将所述水印沿预设方向移动直至所述水印的区域不包括字符,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
其中,步骤S300至步骤S302可以参考图1所示实施例的说明,步骤S303至步骤S304可以参考图4所示实施例的说明,这里不再赘述。
步骤S305,当检测到对所述APP界面进行截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中。
这里的截屏操作可以是由硬件触发的也可以是软件触发的,当所述APP检测到手机有截屏操作时,对登陆金融APP的用户进行权限的校验。
作为一种实施方式,这里的用户权限可以分为高级用户和普通用户,当判断登陆用户为高级用户时,截屏的操作可以正常进行。当判断登陆用户为普通用户时,则根据用户信息生成数字水印,对金融APP界面上的原始数字水印进行置乱加密并将数字水印嵌入到金融APP的界面中。现有技术中,数字水印的生成方法有多种,包括:空域水印、频域水印、时域/ 频域水印和间/尺度水印,本申请实施例采用频域水印,例如,可以根据用户信息生成可嵌入到原始信息中的初始水印信息;然后按照预设规则变换位置,并进行扩频处理,最终生成数字水印信息。数字水印的置乱加密可以有多种方式,本申请实施例采用基于混沌映射的Arnold的置乱加密方式。
本申请实施例提供的金融APP界面的水印嵌入方法,使水印不遮挡控件和字符,方便用户的操作和数字水印信息的提取,同时,当检测到截屏操作时,根据用户信息生成数字水印,对数字水印进行置乱加密并将数字水印嵌入到金融APP的界面中,提高了数据的安全性。
以下是本申请的装置实施例,在装置实施例中未详尽描述的细节,可以参考上述对应的方法实施例。
请参考图7,其示出了金融APP界面的水印嵌入装置的结构方框图,所述水印嵌入装置40包括:水印生成模块401、控件区域获取模块402和水印设置模块403。
其中,水印生成模块401用于获取登陆所述金融APP的用户信息,根据所述用户信息生成水印。
具体的,金融APP的用户信息是存储在与该金融APP相关联的后台第三方用户信息数据库中,水印生成模块401获取用户输入的信息后,与用户所选择的公司的用户信息数据库进行比较,若用户登陆信息在用户信息数据库中有唯一的数据与之对应时,则判断为存在于用户信息数据库中,用户为该公司的合法用户,允许用户进行登陆操作;若用户登陆信息在用户信息数据库中无数据与之对应时,则判断为不存在于用户信息数据库中,用户为该公司的非法用户或未在该公司开通权限的用户,拒绝用户登陆金融APP。
控件区域获取模块402,用于获取所述金融APP的界面上的控件的界面区域。
作为一种实施方式,控件区域获取模块402将金融APP的界面上形成坐标系,通过获取坐标系上的坐标获取控件的界面区域。
水印设置模块403,用于在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,若所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
作为一种实施方式,水印设置模块403可以根据一定的规则在金融APP的界面上设置水印,例如,将金融APP的界面分成N*N个区域,例如,N取值为3,则将水印设置在界面9个区域内。
具体的,水印设置模块403可以通过分别获取水印区域的坐标和控件的坐标来判断水印的区域与控件的界面区域是否存在重合区域。例如,水印设置模块403可以分别获取水印区 域的坐标和控件的界面区域坐标,将水印区域的坐标和控件的界面区域坐标进行比较,当判断结果为存在大于一个的坐标相同时,判断水印的区域与控件的界面区域存在重合区域。
当水印设置模块403判断结果为水印的区域与控件的界面区域存在重合区域时,移动水印使水印的区域与控件的界面区域最多存在一个重合点。优选的,水印移动的方向相对控件平行向外移动,使水印保持原来的方向并与其他水印的方向一致。优选的,使水印移动的方向是将水印移至与控件的界面坐标只有一个重合点的最短的距离的方向。
水印设置模块403将水印的移动距离最远不超出金融APP的界面,使水印始终保持在APP的界面之内,使水印的内容显示完整,可以通过水印的区域坐标是否超出坐标系的范围判定水印是否保持在APP的界面之内,在移动的过程中,当水印移动至坐标系的边缘时,还可以将所有的水印进一步缩小,使水印的区域不超出APP界面的范围。
进一步地,水印嵌入装置40还可以包括字符检测模块404,如图8所示,其中,字符检测模块404用于对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠。具体的,字符检测模块404在目前已知的水印的区域中分别找到其横纵坐标最大和最小的两个端点值,并获取金融APP的界面上字符区域的横纵坐标最大和最小的两个端点值,如果水印的区域的横纵坐标范围与字符区域的横纵坐标范围均重叠,则判定水印的区域与字符部分重叠。
进一步地,水印设置模块403,还用于在所述水印的区域内与字符部分重叠时继续将所述水印沿预设方向移动直至所述水印的区域不包括字符,若所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
具体的,水印设置模块403将水印移至控件界面区域之外时,检测到与字符部分重叠,则继续将水印沿预设方向移动。其中,预设方向优选为水印的垂直轴方向,直至水印的区域没有检测到字符为止。水印的移动距离最远不超出金融APP的界面,使水印始终保持在APP的界面之内,使水印的内容显示完整。还可以将所有的水印进一步缩小,使水印的区域不超出APP界面的范围。
本申请实施例提供的金融APP界面的水印嵌入装置,通过获取登陆用户的信息,根据用户的信息生成水印,使水印可以起到溯源的作用,对生成水印的区域分别进行控件和字符的检测,若水印与控件或字符相重叠,则将水印沿预设方向移动调整,使水印与控件和字符不重叠,方便用户的操作,也保护了数据的安全。
本申请另一种实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述实施例中的金融APP界面的水印嵌入方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现上述实 施例中金融APP界面的水印嵌入装置中各模块/单元的功能,为避免重复,这里不再赘述。
请参考图9,其示出了本实施例的终端设备的示意图,终端设备6包括处理器60、存储器61以及存储在存储器61中并可在处理器60上运行的计算机可读指令62。处理器60执行计算机可读指令62时实现上述实施例中金融APP界面的水印嵌入方法的各个步骤,例如图1所示的步骤S100、S101和S102。或者,处理器60执行计算机可读指令62时实现上述实施例中金融APP界面的水印嵌入装置各模块/单元的功能。
示例性的,计算机可读指令62可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器61中,并由处理器60执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述计算机可读指令62在终端设备6中的执行过程。例如,计算机可读指令62可以被分割成如图7所示的水印生成模块401、控件区域获取模块402和水印设置模块403的功能。
该终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图9仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备还可以包括输入输出设备、网络接入设备、总线等。
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器61可以是终端设备6的内部存储单元,例如终端设备6的硬盘或内存。存储器61也可以是终端设备6的外部存储设备,例如终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器61还可以既包括终端设备6的内部存储单元也包括外部存储设备。存储器61用于存储计算机可读指令以及终端设备所需的其他程序和数据。存储器61还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部 或者部分功能。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种金融APP界面的水印嵌入方法,其特征在于,所述水印嵌入方法包括以下步骤:
    获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
    获取所述金融APP的界面上的控件的界面区域;
    在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
  2. 如权利要求1所述的金融APP界面的水印嵌入方法,其特征在于,所述移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,包括:
    将所述水印沿预设方向移动,使所述水印的区域与所述控件的界面区域至多存在一个重合点时,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  3. 如权利要求1所述的金融APP界面的水印嵌入方法,其特征在于,所述移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,之后还包括:
    对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠;
    若所述水印的区域内与字符部分重叠,则继续将所述水印沿预设方向移动直至所述水印的区域不包括字符,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  4. 如权利要求1所述的金融APP界面的水印嵌入方法,其特征在于,所述水印嵌入方法还包括:
    当检测到对所述APP界面进行截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中。
  5. 如权利要求4所述的金融APP界面的水印嵌入方法,其特征在于,当所述APP检测到有截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中,包括:
    对登陆APP的用户进行权限设置,所述权限包括普通用户权限和高级用户权限;
    若所述APP检测到有截屏操作时,对所述用户信息进行权限校验;
    若判定所述用户信息包含的权限属于普通用户权限时,根据所述用户信息生成数字水印,对所述数字水印进行置乱加密,并嵌入到所述金融APP的界面中。
  6. 如权利要求1所述的金融APP界面的水印嵌入方法,其特征在于,所述根据所述用户信息生成水印,包括:
    根据所述用户信息生成标签,将生成的标签放到预设图层中,再将生成的标签与预设图层重叠呈现生成水印。
  7. 一种金融APP界面的水印嵌入装置,其特征在于,所述水印嵌入装置包括:
    水印生成模块,用于获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
    控件区域获取模块,用于获取所述金融APP的界面上的控件的界面区域;
    水印设置模块,用于在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
  8. 如权利要求7所述的金融APP界面的水印嵌入装置,其特征在于,所述水印设置模块还用于将所述水印沿预设方向移动,使所述水印的区域与所述控件的界面区域至多存在一个重合点时,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
    获取所述金融APP的界面上的控件的界面区域;
    在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
  10. 如权利要求9所述的终端设备,其特征在于,所述移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,包括:
    将所述水印沿预设方向移动,使所述水印的区域与所述控件的界面区域至多存在一个重合点时,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  11. 如权利要求9所述的终端设备,其特征在于,所述移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠;
    若所述水印的区域内与字符部分重叠,则继续将所述水印沿预设方向移动直至所述水印 的区域不包括字符,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  12. 如权利要求9所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:
    当检测到对所述APP界面进行截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中。
  13. 如权利要求12所述的终端设备,其特征在于,当所述APP检测到有截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中,包括:
    对登陆APP的用户进行权限设置,所述权限包括普通用户权限和高级用户权限;
    若所述APP检测到有截屏操作时,对所述用户信息进行权限校验;
    若判定所述用户信息包含的权限属于普通用户权限时,根据所述用户信息生成数字水印,对所述数字水印进行置乱加密,并嵌入到所述金融APP的界面中。
  14. 如权利要求9所述的终端设备,其特征在于,所述根据所述用户信息生成水印,包括:
    根据所述用户信息生成标签,将生成的标签放到预设图层中,再将生成的标签与预设图层重叠呈现生成水印。
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:
    获取登陆所述金融APP的用户信息,根据所述用户信息生成水印;
    获取所述金融APP的界面上的控件的界面区域;
    在所述金融APP的界面上设置所述水印,并对所述水印的区域进行控件检测,若所述水印的区域与所述控件的界面区域存在重合区域时,则移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点。
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述移动所述水印使所述水印的区域与所述控件的界面区域至多存在一个重合点,包括:
    将所述水印沿预设方向移动,使所述水印的区域与所述控件的界面区域至多存在一个重合点时,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  17. 如权利要求15所述的计算机可读存储介质,其特征在于,所述移动所述水印使所述 水印的区域与所述控件的界面区域至多存在一个重合点之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    对所述水印的区域进行字符检测,判断所述水印的区域是否与字符部分相重叠;
    若所述水印的区域内与字符部分重叠,则继续将所述水印沿预设方向移动直至所述水印的区域不包括字符,若检测到所述水印超出所述APP界面,则对所述水印进行缩小,使所述水印位于所述APP界面内。
  18. 如权利要求15所述的计算机可读存储介质,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:
    当检测到对所述APP界面进行截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中。
  19. 如权利要求18所述的计算机可读存储介质,其特征在于,当所述APP检测到有截屏操作时,对所述用户信息进行权限校验,若所述用户信息未通过权限校验,则根据所述用户信息生成数字水印并将所述数字水印嵌入到所述金融APP的界面中,包括:
    对登陆APP的用户进行权限设置,所述权限包括普通用户权限和高级用户权限;
    若所述APP检测到有截屏操作时,对所述用户信息进行权限校验;
    若判定所述用户信息包含的权限属于普通用户权限时,根据所述用户信息生成数字水印,对所述数字水印进行置乱加密,并嵌入到所述金融APP的界面中。
  20. 如权利要求15所述的计算机可读存储介质,其特征在于,所述根据所述用户信息生成水印,包括:
    根据所述用户信息生成标签,将生成的标签放到预设图层中,再将生成的标签与预设图层重叠呈现生成水印。
PCT/CN2017/112555 2017-10-31 2017-11-23 金融app界面的水印嵌入方法、装置、设备及存储介质 WO2019085076A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711049633.1 2017-10-31
CN201711049633.1A CN107885565B (zh) 2017-10-31 2017-10-31 金融app界面的水印嵌入方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019085076A1 true WO2019085076A1 (zh) 2019-05-09

Family

ID=61783193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112555 WO2019085076A1 (zh) 2017-10-31 2017-11-23 金融app界面的水印嵌入方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN107885565B (zh)
WO (1) WO2019085076A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810653B (zh) * 2018-05-21 2020-10-16 武汉斗鱼网络科技有限公司 一种水印的展示方法、装置、终端和存储介质
CN109033850A (zh) * 2018-06-29 2018-12-18 深信服科技股份有限公司 一种截屏图片的处理方法、装置、终端和计算机存储介质
CN109784011A (zh) * 2018-12-24 2019-05-21 北京奇安信科技有限公司 水印生成方法及装置
CN109828810A (zh) * 2018-12-28 2019-05-31 北京达佳互联信息技术有限公司 屏幕图片截取方法、水印添加方法、装置、设备及介质
CN109784006A (zh) * 2019-01-04 2019-05-21 平安科技(深圳)有限公司 水印嵌入和提取方法及终端设备
CN110286813B (zh) * 2019-05-22 2020-12-01 北京达佳互联信息技术有限公司 图标位置确定方法和装置
CN113487473B (zh) * 2021-08-03 2024-03-26 北京百度网讯科技有限公司 一种添加图像水印的方法、装置、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023059A (zh) * 2016-05-26 2016-10-12 北京启迪思创科技有限公司 一种水印信息生成方法及装置
CN106485645A (zh) * 2016-10-31 2017-03-08 珠海赛纳打印科技股份有限公司 一种水印调整的方法及装置
CN107239679A (zh) * 2017-04-28 2017-10-10 浙江华途信息安全技术股份有限公司 程序窗口信息保护方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631252A (zh) * 2015-05-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 水印嵌入方法、水印嵌入装置和终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023059A (zh) * 2016-05-26 2016-10-12 北京启迪思创科技有限公司 一种水印信息生成方法及装置
CN106485645A (zh) * 2016-10-31 2017-03-08 珠海赛纳打印科技股份有限公司 一种水印调整的方法及装置
CN107239679A (zh) * 2017-04-28 2017-10-10 浙江华途信息安全技术股份有限公司 程序窗口信息保护方法及系统

Also Published As

Publication number Publication date
CN107885565B (zh) 2019-02-19
CN107885565A (zh) 2018-04-06

Similar Documents

Publication Publication Date Title
WO2019085076A1 (zh) 金融app界面的水印嵌入方法、装置、设备及存储介质
US10305889B2 (en) Identity authentication method and device and storage medium
US9515832B2 (en) Process authentication and resource permissions
WO2019085126A1 (zh) 金融app界面的显示方法、装置、设备及存储介质
US9582656B2 (en) Systems for validating hardware devices
WO2015131713A1 (zh) 图像处理、访问方法及装置
US9660986B2 (en) Secure access method and secure access device for an application program
US9449166B2 (en) Performing authentication based on user shape manipulation
CA3023939A1 (en) Method and apparatus for dynamic executable verification
EP3454244B1 (en) Authentication method and device, method and device for generating information for authentication
US20200327229A1 (en) Method, apparatus, electronic device and storage medium for protecting private key of digital wallet
CN115114598A (zh) 水印生成、水印用于文件追溯的方法及装置
US20230177128A1 (en) Authentication and calibration via gaze tracking
US10521150B2 (en) Data processing method and device for nonvolatile memory and storage medium
CN108696355B (zh) 一种防止用户头像盗用的方法及系统
CN110111231B (zh) 水印嵌入方法、装置、设备及计算机可读存储介质
CN110069942B (zh) 水印嵌入方法、装置、设备及计算机可读存储介质
CN111046440B (zh) 一种安全区域内容的篡改验证方法及系统
TWI465956B (zh) 追蹤電子文件外洩源頭之方法及其裝置
KR101516565B1 (ko) 온라인 상에서의 이미지를 이용한 인증방법 및 장치
CN105975860A (zh) 一种信任文件管理方法、装置及设备
CN113422687A (zh) 一种验证方法、验证服务器和验证系统
WO2017020449A1 (zh) 一种指纹读取方法及用户设备
KR20210068929A (ko) 이미지 무단 복제 및 무단 도용 추적 시스템
US20240143805A1 (en) Document protection mechanism

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: 17930350

Country of ref document: EP

Kind code of ref document: A1

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 (EPO FORM 1205A DATED 23.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17930350

Country of ref document: EP

Kind code of ref document: A1