Data encryption method and system for improving network security

By performing local area encryption coefficient calculation and threshold judgment on the image, only areas with encryption coefficients higher than the threshold are encrypted, which solves the problem of low image encryption efficiency in the existing technology and achieves more efficient encryption processing.

CN118869896APending Publication Date: 2024-10-29LUDONG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410978459.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

When the existing technology encrypts an image, after it is divided into areas of the same area, even if the area only contains a small amount of the foreground area, the entire area still needs to be encrypted, causing unnecessary pixels to participate in encryption and affecting efficiency.

Method used

By dividing the image into multiple local areas of the same area, the encryption coefficient of each area is calculated. Only when the encryption coefficient is greater than the set threshold, the area is encrypted to avoid unnecessary encryption of pixels.

Benefits of technology

It effectively reduces the number of pixels that need to be encrypted and improves the encryption efficiency. In particular, only local areas containing a large number of foreground areas are encrypted, which reduces the consumption of computing resources and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869896A_ABST
    Figure CN118869896A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of data encryption, and discloses a data encryption method and system for improving network security, and the method comprises the steps: S1, obtaining a text and an image which need to be encrypted; s2, encrypting the text data by adopting a preset text encryption algorithm to obtain encrypted text data; s3, encrypting the image needing to be encrypted by using the following method: S31, dividing the image needing to be encrypted into a plurality of local areas with the same area; s32, taking a local region containing a foreground region of an image needing to be encrypted as an element in the set U1; taking a local region which does not contain a foreground region of the image to be encrypted as an element in the set U2; s33, each local area in the U1 is encrypted, and the encrypted local areas are stored in a set U3; and S34, forming an encrypted image by elements in the sets U2 and U3. According to the invention, the number of pixel points needing to be encrypted is effectively reduced, and the encryption efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data encryption, and in particular to a data encryption method and system for improving network security. Background Art

[0002] In order to improve the security of network data transmission, it is usually necessary to encrypt the transmitted content. In the process of data transmission on the Internet, different types of data usually need to be encrypted using different encryption algorithms. When encrypting text data, symmetric encryption, asymmetric encryption and other methods can be used for encryption. When encrypting an image, in order to improve the efficiency of encryption, the prior art usually divides the image into multiple areas of the same size first, and then selects the foreground area as the key area for encryption. However, since the divided areas are of the same area, even if the area only contains a small part of the foreground area, the entire area still needs to be encrypted, resulting in more pixels that do not belong to the foreground participating in the encryption process, affecting the efficiency of encryption. Summary of the invention

[0003] The purpose of the present invention is to disclose a data encryption method and system for improving network security, and to solve the technical problems raised in the background technology.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides a data encryption method for improving network security, comprising:

[0006] S1, obtain the text and image to be encrypted;

[0007] S2, encrypting the text data using a preset text encryption algorithm to obtain encrypted text data;

[0008] S3, use the following method to encrypt the image that needs to be encrypted:

[0009] S31, dividing the image to be encrypted into a plurality of local areas of equal area;

[0010] S32, taking the local area including the foreground area of ​​the image to be encrypted as an element in the set U1; taking the local area not including the foreground area of ​​the image to be encrypted as an element in the set U2;

[0011] S33, encrypting each local area in U1 respectively, and storing the encrypted local area into set U3;

[0012] S34, an encrypted image composed of elements in sets U2 and U3;

[0013] Among them, each local area in U1 is encrypted separately, including:

[0014] Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows:

[0015] Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm.

[0016] If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.

[0017] Preferably, the preset text encryption algorithms include a DES algorithm and an AES algorithm.

[0018] Preferably, the process of acquiring the foreground area of ​​the image to be encrypted includes:

[0019] Grayscale the image to be encrypted to obtain a grayscale image;

[0020] Performing filtering on the grayscale image to obtain a filtered image;

[0021] Perform threshold segmentation on the filtered image to obtain a foreground image;

[0022] Store the coordinates of the pixels in the foreground image into the set LA;

[0023] The area consisting of the pixel points corresponding to all coordinates in the set LA in the image to be encrypted is taken as the foreground area.

[0024] Preferably, grayscale processing is performed on the image to be encrypted to obtain a grayscale image, including:

[0025] A grayscale formula is used to grayscale each pixel in the image to be encrypted to obtain a grayscale image;

[0026] The grayscale formula is:

[0027] Gray(d)=0.299R(d)+0.587G(d)+0.114B(d)

[0028] Gray(d) represents the gray value of pixel d after grayscale conversion, and R(d), G(d) and B(d) are the red component, green component and blue component of pixel d in the RGB color space, respectively.

[0029] Preferably, filtering the grayscale image to obtain a filtered image includes:

[0030] The grayscale image is filtered using a wavelet transform filtering algorithm or a maximum entropy filtering algorithm to obtain a filtered image.

[0031] Preferably, threshold segmentation is performed on the filtered image to obtain a foreground image, including:

[0032] The threshold segmentation algorithm based on histogram or the maximum inter-class variance segmentation algorithm is used to perform threshold segmentation on the filtered image to obtain the foreground image.

[0033] Preferably, the calculation process of the encryption coefficient includes:

[0034] Get the set of edge pixels in b, egU;

[0035] Get the set arU of pixels in egU in the largest closed area enclosed by the pixels in b;

[0036] The encryption coefficient is calculated using the following formula:

[0037]

[0038] enccoef b represents the encryption coefficient of b, NegU represents the number of pixels in egU, Nb represents the number of pixels in b, SarU represents the area of ​​the closed area corresponding to the pixels in arU, Sb represents the area of ​​b, a1 and a2 represent the first encryption weight and the second encryption weight respectively.

[0039] Preferably, obtaining a set Ub of pixels in b that need to be encrypted includes:

[0040] Get the union egarU consisting of the pixels in egU and arU;

[0041] Get the minimum enclosing rectangle D of the area composed of the pixels of egarU;

[0042] The pixels in the minimum circumscribed rectangle D are taken as the pixels to be encrypted and stored in Ub.

[0043] Preferably, the preset image encryption algorithm includes a chaotic image encryption algorithm.

[0044] In a second aspect, the present invention provides a data encryption system for improving network security, including an encrypted data acquisition module, a text encryption module, and an image encryption module;

[0045] The encrypted data acquisition module is used to acquire the text and images that need to be encrypted;

[0046] The text encryption module is used to encrypt text data using a preset text encryption algorithm to obtain encrypted text data;

[0047] The image encryption module is used to encrypt the image to be encrypted using the following method:

[0048] Divide the image to be encrypted into multiple local areas of equal area;

[0049] The local area containing the foreground area of ​​the image to be encrypted is taken as an element in the set U1; the local area not containing the foreground area of ​​the image to be encrypted is taken as an element in the set U2;

[0050] Encrypt each local area in U1 respectively, and store the encrypted local areas into set U3;

[0051] The encrypted image is composed of the elements in sets U2 and U3;

[0052] Among them, each local area in U1 is encrypted separately, including:

[0053] Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows:

[0054] Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm.

[0055] If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.

[0056] Beneficial effects:

[0057] Compared with the prior art, during the process of encrypting image data, after dividing the image into multiple local areas, the present invention no longer directly and simply encrypts all local areas including the foreground area, but calculates the encryption coefficient. Only when the encryption coefficient is greater than the set encryption coefficient threshold, the entire local area is encrypted, thereby avoiding encrypting all pixel points in the local area that only contains part of the foreground area, effectively reducing the number of pixel points that need to be encrypted, and improving the encryption efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0059] Figure 1 A schematic diagram of a data encryption method for improving network security according to the present invention.

[0060] Figure 2 A schematic diagram of a data encryption system for improving network security according to the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] like Figure 1 As shown, the present invention provides a data encryption method for improving network security, comprising:

[0063] S1, obtain the text and image to be encrypted;

[0064] S2, encrypting the text data using a preset text encryption algorithm to obtain encrypted text data;

[0065] S3, use the following method to encrypt the image that needs to be encrypted:

[0066] S31, dividing the image to be encrypted into a plurality of local areas of equal area;

[0067] S32, taking the local area including the foreground area of ​​the image to be encrypted as an element in the set U1; taking the local area not including the foreground area of ​​the image to be encrypted as an element in the set U2;

[0068] S33, encrypting each local area in U1 respectively, and storing the encrypted local area into set U3;

[0069] S34, an encrypted image composed of elements in sets U2 and U3;

[0070] Among them, each local area in U1 is encrypted separately, including:

[0071] Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows:

[0072] Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm.

[0073] If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.

[0074] In the process of encrypting image data, after dividing the image into multiple local areas, the present invention no longer directly and simply encrypts all local areas including the foreground area, but calculates the encryption coefficient. Only when the encryption coefficient is greater than the set encryption coefficient threshold, the entire local area is encrypted, thereby avoiding encrypting all pixel points in the local area that only contains part of the foreground area, effectively reducing the number of pixel points that need to be encrypted, and improving the encryption efficiency.

[0075] The foreground area usually contains the main objects or important information in the image. Encrypting these areas can protect the most critical data from unauthorized access. Compared with the entire image, the amount of data in the foreground area is usually much smaller. Encrypting only this part can reduce the computing resources and time required for encryption and decryption.

[0076] Preferably, the preset text encryption algorithms include a DES algorithm and an AES algorithm.

[0077] DES (Data Encryption Standard): is an earlier symmetric encryption algorithm that uses a 56-bit key to encrypt and decrypt data. AES (Advanced Encryption Standard): is a widely used symmetric encryption algorithm that supports 128, 192, and 256-bit keys.

[0078] Preferably, the process of acquiring the foreground area of ​​the image to be encrypted includes:

[0079] Grayscale the image to be encrypted to obtain a grayscale image;

[0080] Performing filtering on the grayscale image to obtain a filtered image;

[0081] Perform threshold segmentation on the filtered image to obtain a foreground image;

[0082] Store the coordinates of the pixels in the foreground image into the set LA;

[0083] The area consisting of the pixel points corresponding to all coordinates in the set LA in the image to be encrypted is taken as the foreground area.

[0084] Image filtering can improve image quality, enhance features and reduce noise.

[0085] Preferably, grayscale processing is performed on the image to be encrypted to obtain a grayscale image, including:

[0086] A grayscale formula is used to grayscale each pixel in the image to be encrypted to obtain a grayscale image;

[0087] The grayscale formula is:

[0088] Gray(d)=0.299R(d)+0.587G(d)+0.114B(d)

[0089] Gray(d) represents the gray value of pixel d after grayscale conversion, and R(d), G(d) and B(d) are the red component, green component and blue component of pixel d in the RGB color space, respectively.

[0090] In addition to the above grayscale methods, you can also use the luminosity method, maximum value method and other methods to grayscale the image.

[0091] Luminosity is similar to the weighted average method, but the weights are slightly different. The formula is as follows:

[0092] Gray(d)=0.21R(d)+0.72G(d)+0.07B(d).

[0093] Preferably, filtering the grayscale image to obtain a filtered image includes:

[0094] The grayscale image is filtered using a wavelet transform filtering algorithm or a maximum entropy filtering algorithm to obtain a filtered image.

[0095] The wavelet transform filtering algorithm uses wavelet transform to perform multi-scale analysis on the signal in the time and frequency domains, thereby achieving image denoising.

[0096] The maximum entropy filtering algorithm is based on the maximum entropy principle and reconstructs the high-frequency part of the image to achieve filtering.

[0097] Preferably, threshold segmentation is performed on the filtered image to obtain a foreground image, including:

[0098] The threshold segmentation algorithm based on histogram or the maximum inter-class variance segmentation algorithm is used to perform threshold segmentation on the filtered image to obtain the foreground image.

[0099] Histogram-based threshold method: By analyzing the grayscale histogram of the image, find a suitable peak or valley value as the threshold, and then segment the image.

[0100] Based on the maximum inter-class variance method (OTSU algorithm): The OTSU algorithm is a method for adaptively selecting thresholds. It determines the optimal threshold by maximizing the inter-class variance to achieve image segmentation.

[0101] Preferably, the calculation process of the encryption coefficient includes:

[0102] Get the set of edge pixels in b, egU;

[0103] Get the set arU of pixels in egU in the largest closed area enclosed by the pixels in b;

[0104] The encryption coefficient is calculated using the following formula:

[0105]

[0106] enccoef b represents the encryption coefficient of b, NegU represents the number of pixels in egU, Nb represents the number of pixels in b, SarU represents the area of ​​the closed area corresponding to the pixels in arU, Sb represents the area of ​​b, a1 and a2 represent the first encryption weight and the second encryption weight respectively.

[0107] In the present invention, the encryption coefficient can be used to determine whether the pixels in the local area belong to the foreground area. The larger the encryption coefficient, the more pixels belonging to the foreground area are included. This avoids simply encrypting all the pixels in all the local areas containing the pixels in the foreground area, which can reduce the number of pixels that need to be encrypted and improve the efficiency of encryption.

[0108] In addition, the present invention also sets a corresponding threshold value for judgment, and can directly encrypt all the pixels when most of the pixels in the local area are pixels in the foreground area without obtaining the set Ub, thereby improving the encryption efficiency.

[0109] Preferably, the first encryption weight and the second encryption weight are 0.55 and 0.45 respectively.

[0110] The encryption weight can be adjusted according to actual needs. Accordingly, after the encryption weight is adjusted, the encryption coefficient threshold also needs to be adjusted.

[0111] Preferably, the encryption coefficient threshold is 0.6.

[0112] Preferably, obtaining a set Ub of pixels in b that need to be encrypted includes:

[0113] Get the union egarU consisting of the pixels in egU and arU;

[0114] Get the minimum enclosing rectangle D of the area composed of the pixels of egarU;

[0115] The pixels in the minimum circumscribed rectangle D are taken as the pixels to be encrypted and stored in Ub.

[0116] In the process of obtaining pixels to be encrypted, the present invention does not directly use the pixels in egU and arU as the area to be encrypted, because there may be a closed area with a smaller area. Therefore, the present invention can encrypt most of the pixels in the foreground area by obtaining the minimum circumscribed rectangle corresponding to the union, and the encrypted area is a complete connected area, avoiding a large change in the coordinates of the pixels in the encryption process, and can further improve the encryption efficiency.

[0117] Preferably, the preset image encryption algorithm includes a chaotic image encryption algorithm.

[0118] Chaos encryption algorithm uses nonlinear dynamic systems in chaos theory to create randomness, thereby achieving encrypted transmission. The whole process can be simply summarized as the following steps:

[0119] Initial condition setting: Select a suitable chaotic system as the basis, such as Logistic mapping, Lorenz system, etc., and determine its initial state parameters.

[0120] Chaotic signal generation: Chaotic signals are generated by utilizing the nonlinear characteristics of chaotic systems and their sensitivity to initial conditions.

[0121] Mapping to plaintext: Convert the plaintext information to be transmitted into a digital signal and use the chaotic signal for mapping so that the plaintext information is combined with the chaotic signal.

[0122] Encrypted transmission: Use chaotic signals to encrypt the mapped information, and use chaotic signals as keys or control parameters to achieve chaotic encryption of plaintext information.

[0123] Decryption reception: At the receiving end, the same chaotic system and initial conditions are used to generate the same chaotic signal, and then the chaotic signal is used to decrypt the encrypted transmitted information to obtain the original plaintext information.

[0124] like Figure 2 As shown, the present invention provides a data encryption system for improving network security, including an encrypted data acquisition module, a text encryption module and an image encryption module;

[0125] The encrypted data acquisition module is used to acquire the text and images that need to be encrypted;

[0126] The text encryption module is used to encrypt text data using a preset text encryption algorithm to obtain encrypted text data;

[0127] The image encryption module is used to encrypt the image to be encrypted using the following method:

[0128] Divide the image to be encrypted into multiple local areas of equal area;

[0129] The local area containing the foreground area of ​​the image to be encrypted is taken as an element in the set U1; the local area not containing the foreground area of ​​the image to be encrypted is taken as an element in the set U2;

[0130] Encrypt each local area in U1 respectively, and store the encrypted local areas into set U3;

[0131] The encrypted image is composed of the elements in sets U2 and U3;

[0132] Among them, each local area in U1 is encrypted separately, including:

[0133] Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows:

[0134] Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm.

[0135] If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.

[0136] It is obvious to those skilled in the art that the present invention is not limited to the details of the above-mentioned exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention; therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, and therefore it is intended to include all changes within the meaning and scope of the equivalent elements of the claims within the present invention, and any figure mark in the claims should not be regarded as limiting the claims involved.

[0137] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A data encryption method for improving network security, characterized in that: include: S1, obtain the text and image to be encrypted; S2, encrypting the text data using a preset text encryption algorithm to obtain encrypted text data; S3, use the following method to encrypt the image that needs to be encrypted: S31, dividing the image to be encrypted into a plurality of local areas of equal area; S32, taking the local area including the foreground area of ​​the image to be encrypted as an element in the set U1; taking the local area not including the foreground area of ​​the image to be encrypted as an element in the set U2; S33, encrypting each local area in U1 respectively, and storing the encrypted local area into set U3; S34, an encrypted image composed of elements in sets U2 and U3; Among them, each local area in U1 is encrypted separately, including: Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows: Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm. If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.

2. A data encryption method for improving network security according to claim 1, characterized in that: The preset text encryption algorithms include DES algorithm and AES algorithm.

3. A data encryption method for improving network security according to claim 1, characterized in that: The process of obtaining the foreground area of ​​the image to be encrypted includes: Grayscale the image to be encrypted to obtain a grayscale image; Performing filtering on the grayscale image to obtain a filtered image; Perform threshold segmentation on the filtered image to obtain a foreground image; Store the coordinates of the pixels in the foreground image into the set LA; The area consisting of the pixel points corresponding to all coordinates in the set LA in the image to be encrypted is taken as the foreground area.

4. A data encryption method for improving network security according to claim 3, characterized in that: Grayscale the image to be encrypted to obtain a grayscale image, including: A grayscale formula is used to grayscale each pixel in the image to be encrypted to obtain a grayscale image; The grayscale formula is: Gray(d)=0.299R(d)+0.587G(d)+0.114B(d) Gray(d) represents the gray value of pixel d after grayscale conversion, and R(d), G(d) and B(d) are the red component, green component and blue component of pixel d in the RGB color space, respectively.

5. A data encryption method for improving network security according to claim 3, characterized in that: The grayscale image is filtered to obtain a filtered image, including: The grayscale image is filtered using a wavelet transform filtering algorithm or a maximum entropy filtering algorithm to obtain a filtered image.

6. A data encryption method for improving network security according to claim 3, characterized in that: Perform threshold segmentation on the filtered image to obtain the foreground image, including: The threshold segmentation algorithm based on histogram or the maximum inter-class variance segmentation algorithm is used to perform threshold segmentation on the filtered image to obtain the foreground image.

7. A data encryption method for improving network security according to claim 1, characterized in that: The calculation process of the encryption coefficient includes: Get the set of edge pixels in b, egU; Get the set arU of pixels in egU in the largest closed area enclosed by the pixels in b; The encryption coefficient is calculated using the following formula: enccoef b represents the encryption coefficient of b, NegU represents the number of pixels in egU, Nb represents the number of pixels in b, SarU represents the area of ​​the closed area corresponding to the pixels in arU, Sb represents the area of ​​b, a1 and a2 represent the first encryption weight and the second encryption weight respectively.

8. A data encryption method for improving network security according to claim 7, characterized in that: Get the set Ub of pixels that need to be encrypted in b, including: Get the union egarU consisting of the pixels in egU and arU; Get the minimum enclosing rectangle D of the area composed of the pixels of egarU; The pixels in the minimum circumscribed rectangle D are taken as the pixels to be encrypted and stored in Ub.

9. A data encryption method for improving network security according to claim 1, characterized in that: The preset image encryption algorithm includes a chaotic image encryption algorithm.

10. A data encryption system for improving network security, characterized in that: It includes an encrypted data acquisition module, a text encryption module and an image encryption module; The encrypted data acquisition module is used to acquire the text and images that need to be encrypted; The text encryption module is used to encrypt text data using a preset text encryption algorithm to obtain encrypted text data; The image encryption module is used to encrypt the image to be encrypted using the following method: Divide the image to be encrypted into multiple local areas of equal area; The local area containing the foreground area of ​​the image to be encrypted is taken as an element in the set U1; the local area not containing the foreground area of ​​the image to be encrypted is taken as an element in the set U2; Encrypt each local area in U1 respectively, and store the encrypted local areas into set U3; The encrypted image is composed of the elements in sets U2 and U3; Among them, each local area in U1 is encrypted separately, including: Let b represent the local area that needs to be encrypted, and the encryption process of b is as follows: Calculate the encryption coefficient of b. If the encryption coefficient is greater than the set encryption coefficient threshold, encrypt all pixels in b using a preset image encryption algorithm. If the encryption coefficient is greater than the set encryption coefficient threshold, a set Ub of pixels to be encrypted in b is obtained, and a preset image encryption algorithm is used to encrypt the area composed of pixels in Ub.