A System And Method For Database Security Using Field Level Encryption

Maharashtra Knowledge Corporation
Application Awaiting Examination App No 202621094763 Computer Science

Patent information

IP India · live record
Application number
202621094763
Filing date
05 August 2026
Status
Application Awaiting Examination
Publication number
39/2026
Publication type
INA
Invention field
Computer Science

Abstract

The present invention relates to a system (100) and a method (200) for database security using field-level encryption includes one or more processors (10), a memory (20), a database middleware interface (30), a policy configuration module (40), an encryption-mode selection module (50), a key management module (60), an encryption module (70), a query transformation module (80), a database communication module (90), a decryption module (92), an application communication module (94), and a data integrity verification module (96). The system (100) receives database operations generated by an application, applies field-specific encryption policies defined by a declarative encryption schema, derives field-specific cryptographic keys, and encrypts selected field values using respective encryption modes. The query transformation module (80) transforms queries for execution against encrypted data. Encrypted database records received through the database communication module (90) are verified by the data integrity verification module (96).

Applicants

1
India
Maharashtra Knowledge Corporation Ltd ICC Trade Tower, 5th Floor, A Wing, Senapati Bapat Road, Pune-411016, Maharashtra, India.

Inventors

3
India
SHAIKH, TanvirBadshah Complex, BajarLane, Near Gore Hospital, Bodhegaon, Tal. Shevgaon, Dist. Ahilyanagar - 414503.
India
PATIL, NileshB306, Pristino, Puranik Abitante Fiore Phase 2, Bavdhan, Pune - 411021.
India
DESHPANDE, PrashantFlat no.3 Building B, Pachvati Housing Socienty, Behind Shell Petrol Pump, Warje, Pune - 411058.

Specification

Show full textCollapse

Description:Field of the invention

[0001] The present invention relates to a database security. More particularly, the present invention relates to a system and a method for database security using field-level encryption.

Background of the invention

[0002] Generally, modern software applications store large amounts of sensitive information, including personal data, financial records, healthcare information, authentication credentials, and confidential business data. Such information is frequently stored in document-oriented databases that support flexible schemas, nested objects, arrays, maps, and multiple native data types, which conventional database encryption techniques present several limitations.

[0003] Encryption at rest generally protects stored database files or disks but may not protect individual data values when the database system, database account, or storage environment is compromised. Application-level encryption may provide stronger protection, but it commonly requires developers to manually add encryption and decryption logic throughout the application. This can result in duplicated code, inconsistent implementation, increased maintenance requirements, and a greater risk of sensitive data being stored without encryption.

[0004] Existing encryption approaches may also interfere with normal database functionality. Once a value is encrypted, a plaintext query may no longer match the stored encrypted value. As a result, common operations such as exact-match searches, range searches, updates, and aggregation pipelines may fail unless the application manually transforms the relevant query values.

[0005] Document-oriented databases create additional technical difficulties because a document may contain nested objects, arrays, maps, structures, and database-specific data types. A basic encryption routine may alter the original type of a value, incorrectly process an embedded structure, or encrypt database operators such as $set, $push, or $inc, thereby producing invalid or unintended database commands.

[0006] Different fields may also have different functional and security requirements. For example, an email-address field may need to support exact-match searches, an age or salary field may need to support range searches, and a medical-record field may require stronger randomized encryption without search capability. Applying one encryption mode uniformly to an entire database, collection, or document therefore forces an undesirable compromise between security and query functionality.

[0007] Therefore, there is a need for a system and a method for database security using field-level encryption, which can overcome few or all the drawbacks of the existing prior art.

Objects of the invention

[0008] An object of the present invention is to provide a system and a method for database security using field-level encryption.

[0009] Another object of the present invention is to provide a system and a method for database security using field-level encryption for selected fields within documents stored in a document-oriented database.

[0010] Yet another object of the present invention is to provide a system and a method for database security using field-level encryption, which support deterministic encryption for fields requiring exact-match queries, order-preserving encryption for fields requiring range queries, probabilistic encryption for fields requiring enhanced confidentiality, and unencrypted handling of non-sensitive fields.

[0011] One more object of the present invention is to provide a system and a method for database security using field-level encryption, which recursively process nested documents, structures, maps, arrays, slices, and database-specific data types while preserving the original structure and type of the data.

[0012] Another one object of the present invention is to provide a system and a method for database security using field-level encryption, provide backward compatibility with existing applications and database structures while improving the confidentiality, integrity, and operational usability of sensitive data stored in a document-oriented database.

[0013] One more object of the present invention is to provide a system and a method for database security using field-level encryption, which is simple in operation.

Summary of the invention

[0014] According to the present invention, there is provided a system for database security using field-level encryption. The system includes one or more processors, a memory, a database middleware interface, a policy configuration module, an encryption-mode selection module, a key management module, an encryption module, a query transformation module, a database communication module, a decryption module, an application communication module, and a data integrity verification module. The database middleware interface is communicatively coupled between an application and a database and is configured to receive database operations generated by the application. The database middleware interface enables transparent processing of database operations without requiring application-level encryption, query-transformation, or decryption logic within the application.

[0015] The policy configuration module is configured to store a declarative encryption schema defining respective encryption policies for a plurality of fields of a database record. The encryption-mode selection module is configured to determine an encryption mode for each field according to the corresponding encryption policy. Different fields of the same database record may be protected using different encryption modes according to application requirements. The encryption modes may include one or more of deterministic encryption, probabilistic encryption, order-preserving encryption, type-preserving encryption, and plaintext storage for designated fields.

[0016] The key management module is configured to derive field-specific cryptographic keys from a master cryptographic key using respective hierarchical field identifiers. In one embodiment, each hierarchical field identifier includes a field path identifying a location of a corresponding field within a nested database record. The key management module applies a key derivation function to the master cryptographic key and context information including at least the field path to generate cryptographically distinct field-specific cryptographic keys. The context information may further include one or more of a database identifier, a collection identifier, and a key-version identifier.

[0017] The encryption module is configured to encrypt values of selected fields using the corresponding field-specific cryptographic keys and selected encryption modes. The encryption module recursively traverses nested objects, embedded documents, arrays, key-value structures, and combinations thereof to identify leaf values according to the declarative encryption schema. The encryption module preserves the nesting arrangement and corresponding database-native data types while selectively encrypting designated field values and excluding database-operation syntax from encryption.

[0018] The query transformation module is configured to transform one or more queries associated with a database operation according to the respective encryption policies. The query transformation module identifies a target field and a corresponding query operator, determines compatibility between the query operator and the encryption mode associated with the target field, and transforms plaintext query values into encrypted query values when compatibility is established. When the query operator is incompatible with the selected encryption mode, the query transformation module prevents execution of the database operation and generates an incompatibility indication. The query transformation module may further recursively transform query expressions contained within logical query operators and aggregation pipeline stages while preserving database-operation syntax.

[0019] In an embodiment employing probabilistic encryption, the encryption module is configured to encrypt a plaintext field value using a randomly generated nonce and generate a blind-index value by applying a keyed cryptographic function to the plaintext field value. The blind-index value is associated with the encrypted field value and stored in the database. The query transformation module is configured to generate a corresponding blind-index value from a plaintext query value and rewrite the query to reference the associated blind-index value, thereby enabling query execution over encrypted data while preserving probabilistic encryption.

[0020] In another embodiment employing deterministic encryption, the encryption module is configured to derive a field-specific nonce key using a field path associated with a field, generate a synthetic nonce from a plaintext field value using the field-specific nonce key, encrypt the plaintext field value using an authenticated encryption algorithm and the synthetic nonce, and associate the synthetic nonce with the resulting ciphertext. The decryption module is configured to decrypt the ciphertext, regenerate an expected synthetic nonce from the recovered plaintext value, compare the regenerated synthetic nonce with the associated synthetic nonce, and detect unauthorized modification or relocation of encrypted field values.

[0021] The database communication module is configured to transmit encrypted database operations or transformed queries to the database and receive encrypted database records from the database. The decryption module is configured to decrypt encrypted field values according to the respective encryption policies using the corresponding field-specific cryptographic keys. The application communication module is configured to provide decrypted database records to the application while maintaining transparency of encryption and decryption operations.

[0022] The data integrity verification module is configured to verify integrity of encrypted database records before decrypted information is provided to the application. The data integrity verification module arranges field identifiers according to a predetermined canonical order, generates a document integrity value by applying a keyed cryptographic function to the ordered field identifiers and corresponding encrypted field values, associates the document integrity value with the database record, recomputes the document integrity value after retrieval, and compares the recomputed document integrity value with the associated document integrity value to detect unauthorized modification of the encrypted database record.

[0023] Each encrypted field value may further be associated with metadata identifying an encryption mode and a version of the master cryptographic key used to derive the corresponding field-specific cryptographic key. The key management module is configured to use a current master cryptographic key version for newly encrypted field values and a historical master cryptographic key version for decrypting previously encrypted field values, thereby facilitating cryptographic key rotation while maintaining access to previously stored encrypted database records.

[0024] Further, a method for database security using field-level encryption is illustarted. The method includes steps of receiving, at a database middleware layer positioned between an application and a database, a database operation generated by the application, determining encryption policies and corresponding encryption modes from a declarative encryption schema, deriving field-specific cryptographic keys from a master cryptographic key using hierarchical field paths, encrypting selected field values while preserving the structure and data types of a database record, transforming database queries according to compatibility between query operators and associated encryption modes, transmitting encrypted data or transformed queries to the database, receiving encrypted data from the database, verifying integrity of the encrypted data, decrypting the encrypted data according to the respective encryption policies, and providing decrypted data to the application without requiring application-level encryption, query-transformation, or decryption logic.

Brief Description of drawings

[0025] The advantages and features of the present invention will be understood better with reference to the following detailed description and claims taken in conjunction with the accompanying drawings, wherein like elements are identified with like symbols, and in which:

[0026] Figure 1 illustrates a schematic block diagram of a system for database security using field-level encryption; and

[0027] Figure 2 illustrates a flowchart of a method for database security using field-level encryption.

Detailed description of the invention

[0028] An embodiment of this invention, illustrating its features, will now be described in detail. The words "comprising," "having," "containing," and "including," and other forms thereof are intended to be equivalent in meaning and be open-ended in that an item or items following any one of these words is not meant to be an exhaustive listing of such item or items or meant to be limited to only the listed item or items.

[0029] The system and a method for database security using field-level encryption. The invention provides a framework for securing data through selective encryption and controlled access while maintaining the usability and functionality of the database. By enabling secure storage, retrieval, and processing of protected information, the invention enhances data confidentiality, integrity, and operational efficiency across a wide range of database applications.

[0030] The terms “first,” “second,” and the like, herein do not denote any order, quantity, or importance, but rather are used to distinguish one element from another, and the terms “a” and “an” herein do not denote a limitation of quantity, but rather denote the presence of at least one of the referenced item.

[0031] Referring now to figure 1, a system (100) for database security using field level encryption. The system (100) includes one or more processors (10), a memory (20), a database middleware interface (30), a policy configuration module (40), an encryption-mode selection module (50), a key management module (60), an encryption module (70), a query transformation module (80), a database communication module (90), a decryption module (92), an application communication module (94), and a data integrity verification module (96).

[0032] The memory (20) is operatively coupled to the one or more processors (10) and stores instructions executable by the one or more processors (10). The database middleware interface (30), the policy configuration module (40), the encryption-mode selection module (50), the key management module (60), the encryption module (70), the query transformation module (80), the database communication module (90), the decryption module (92), the application communication module (94), and the data integrity verification module (96) may be implemented by the one or more processors (10) executing the instructions stored in the memory (20). In other embodiments, one or more of the modules may be implemented by dedicated hardware, programmable circuitry, distributed computing resources, or a combination of hardware and software.

[0033] The database middleware interface (30) is communicatively coupled between the application and the database and receives database operations generated by the application. A database operation may include an insert operation, a find operation, an update operation, a delete operation, an aggregation operation, or another operation supported by the database. The middleware interface (30) may expose an interface corresponding to an existing database driver, application programming interface, object-document mapper, data-access library, or database communication protocol. The middleware interface (30) may therefore be integrated with an existing application without requiring substantial modification of the application or the structure of the database.

[0034] The policy configuration module (40) stores or accesses a declarative encryption schema defining respective encryption policies for a plurality of fields of a database record. The declarative encryption schema may identify each protected field by a field name, hierarchical field path, field identifier, database identifier, collection identifier, record type, or a combination thereof. An encryption policy may specify an encryption mode, key context, key version, data-type treatment, query capability, integrity requirement, blind-index configuration, or other processing information for the corresponding field.

[0035] The declarative encryption schema may assign different encryption policies to different fields within the same database record. For example, a first field may be assigned the deterministic encryption mode to permit equality searching, a second field may be assigned the order-preserving encryption mode to permit range searching, a third field may be assigned the probabilistic encryption mode to provide enhanced confidentiality, a fourth field may be assigned the type-preserving encryption mode to retain a database-native representation, and a fifth field may be assigned the plaintext mode when encryption is not required.

[0036] The encryption-mode selection module (50) determines the encryption mode applicable to each field by evaluating the declarative encryption schema. The selected mode may depend on the hierarchical field path, the type of database operation, the data type of the field value, the query functionality required for the field, and the security policy associated with the field. Fields not identified by an encryption policy may be processed according to a default policy or may remain unencrypted.

[0037] The key management module (60) manages a master cryptographic key and derives respective field-specific cryptographic keys for the protected fields. Each field-specific cryptographic key may be derived by applying a key-derivation function to the master cryptographic key and context information associated with the corresponding field. The context information may include a hierarchical field path, database identifier, collection identifier, tenant identifier, application identifier, record-type identifier, encryption-mode identifier, key-version identifier, or a combination thereof.

[0038] Using a hierarchical field path during key derivation causes different fields to produce cryptographically distinct field-specific keys even when the fields contain identical plaintext values. A field located at a path such as “user.contact.email” may therefore be encrypted using a key different from a field located at “employee.contact.email.” This separation limits the effect of disclosure of a field-specific key and may prevent ciphertext generated for one field from being validly relocated to another field.

[0039] The key management module (60) may support cryptographic-key rotation by maintaining a current master-key version and one or more historical master-key versions. Newly received plaintext values may be encrypted using a field-specific key derived from the current master-key version. Previously encrypted values may include metadata identifying the key version used during encryption. When such values are retrieved, the key management module (60) selects the identified historical master-key version and derives the corresponding field-specific key. The system may therefore decrypt previously stored data while using a newer key version for newly encrypted data.

[0040] The encryption module (70) recursively traverses database records, nested objects, embedded documents, arrays, maps, key-value structures, and combinations thereof. During traversal, the encryption module (70) maintains the hierarchical path of each field, identifies leaf values corresponding to the declarative encryption schema, and encrypts selected leaf values by using the corresponding field-specific keys and selected encryption modes. The nesting arrangement of the record is preserved so that the encrypted record corresponds structurally to the plaintext record.

[0041] The encryption module (70) may serialize a value into a canonical representation before encryption and may store information identifying the original database-native data type. After decryption, the canonical representation may be converted back into the original data type. In another embodiment, type-preserving encryption may generate an encrypted value that remains compatible with the original database-native type. Accordingly, strings, numbers, dates, binary values, identifiers, Boolean values, arrays, or other supported types may be recovered without unintended type conversion.

[0042] The encryption module (70) distinguishes database-operation syntax from field values. Database operators and structural command elements are retained in their required form, while the values associated with protected fields are encrypted according to the declarative encryption schema. For an update expression containing a $set operator, for example, the $set operator remains unchanged while the value assigned to a protected field is encrypted. For an operation containing $push or $inc, the encryption module (70) determines whether the associated field policy and selected encryption mode support the requested operation before processing the corresponding value.

[0043] Under the deterministic encryption mode, repeated encryption of the same plaintext value for the same field produces a repeatable encrypted representation that supports equality matching. In an embodiment, the encryption module (70) derives a field-specific nonce key using the field path associated with the field and generates a synthetic nonce from the plaintext value by using the field-specific nonce key. The encryption module (70) encrypts the plaintext value with an authenticated-encryption algorithm and the synthetic nonce and associates the synthetic nonce with the resulting ciphertext.

[0044] When deterministic ciphertext is retrieved, the decryption module (92) decrypts the ciphertext to recover the plaintext value, regenerates an expected synthetic nonce from the recovered plaintext value and the applicable field-specific nonce key, and compares the expected synthetic nonce with the synthetic nonce associated with the ciphertext. The decryption module (92) rejects the recovered value when the expected synthetic nonce does not correspond to the associated synthetic nonce. Because the field-specific nonce key may depend on the hierarchical field path, this verification may detect unauthorized modification of the ciphertext or relocation of ciphertext from one protected field to another.

[0045] Under the probabilistic encryption mode, the encryption module (70) generates a random or pseudorandom nonce for each encryption operation. Repeated instances of the same plaintext value may therefore produce different ciphertext values, thereby reducing the disclosure of equality patterns. When equality searching is required for a probabilistically encrypted field, the encryption module (70) may additionally generate a blind-index value by applying a keyed cryptographic function to the plaintext field value. The blind-index value is associated with the encrypted field value and may be stored in a corresponding index field or metadata structure.

[0046] For a query directed to a probabilistically encrypted field having a blind index, the query transformation module (80) applies the corresponding keyed cryptographic function to the plaintext query value and generates a query blind-index value. The query is rewritten to target the stored blind-index value rather than the randomized ciphertext. The database can thereby locate candidate records without receiving the plaintext field value. Retrieved ciphertext may subsequently be decrypted and, where required, verified by the middleware layer before the corresponding record is returned to the application.

[0047] Under the order-preserving encryption mode, the relative ordering of encrypted representations corresponds to the relative ordering of the associated plaintext values. The query transformation module (80) may transform boundary values associated with comparison operators so that supported range queries can be executed against encrypted data. Such comparison operators may include greater-than, greater-than-or-equal-to, less-than, and less-than-or-equal-to operators. The order-preserving mode may be assigned only to fields for which range-query functionality is required by the applicable policy.

[0048] Under the type-preserving encryption mode, an encrypted value retains a format or database-native type compatible with the original field. The type-preserving mode may be used where an application, database index, schema validator, or downstream process expects a particular data type or format. Under the plaintext mode, a designated non-sensitive field is retained without encryption, although the field may remain subject to document-level integrity verification.

[0049] The query transformation module (80) examines queries associated with database operations and identifies target fields, field paths, query values, logical operators, comparison operators, update operators, and aggregation-pipeline stages. For each plaintext query value associated with a protected field, the query transformation module (80) obtains the applicable field-specific key and determines whether the query operator is compatible with the encryption mode assigned to the field.

[0050] An equality query directed to a deterministically encrypted field may be transformed by encrypting the plaintext query value using the deterministic mode and the field-specific key. A range query directed to an order-preserving encrypted field may be transformed by encrypting one or more range-boundary values. An equality query directed to a probabilistically encrypted field may be rewritten to target an associated blind index when the applicable policy provides blind-index functionality.

[0051] When a requested operator is incompatible with the encryption mode assigned to the target field, the query transformation module (80) may prevent execution of the database operation and generate an incompatibility indication. For example, a range query may be rejected when directed to a probabilistically encrypted field that does not support ordering. Preventing execution avoids silently returning incorrect results and informs the application or administrator that the requested operation is not permitted under the applicable encryption policy.

[0052] The query transformation module (80) recursively processes query expressions contained within logical operators and aggregation-pipeline stages. Logical expressions, including nested conjunctions, disjunctions, negations, or combinations thereof, may contain multiple field-specific query values governed by different policies. The query transformation module (80) transforms each protected value according to its respective field path and policy while preserving the syntax and arrangement of the surrounding logical expression or aggregation stage.

[0053] The database communication module (90) transmits the resulting database operation to the database. Depending on the operation, the transmitted command may include encrypted field values, transformed query values, blind-index values, integrity metadata, encryption-mode metadata, key-version metadata, or combinations thereof. The database communication module (90) receives encrypted records or operation results from the database and provides them to the data integrity verification module (96) and the decryption module (92).

[0054] The data integrity verification module (96) verifies that an encrypted database record has not been altered, truncated, supplemented, or rearranged without authorization. In an embodiment, the data integrity verification module (96) arranges field identifiers according to a predetermined canonical order and applies a keyed cryptographic function to the canonically ordered field identifiers and corresponding encrypted field values. The resulting document-integrity value is associated with the database record when the record is stored.

[0055] After the encrypted record is retrieved, the data integrity verification module (96) reconstructs the canonical ordering, recomputes the document-integrity value, and compares the recomputed value with the value associated with the record. Decryption or release of the record may be prevented when the values do not correspond. The integrity verification may cover encrypted fields, plaintext fields, metadata, blind-index values, hierarchical paths, or selected combinations thereof.

[0056] The decryption module (92) recursively traverses a retrieved database record and identifies encrypted field values and their associated metadata. For each encrypted field value, the decryption module (92) determines the field path, encryption mode, and key version, obtains the corresponding field-specific cryptographic key from the key management module (60), and decrypts the field value according to the applicable encryption policy. The decrypted value is restored to its original location, structure, and database-native data type.

[0057] The application communication module (94) provides the resulting decrypted database record or operation result to the application. From the perspective of the application, the returned information may correspond to information obtained through a conventional database driver or data-access layer. The field-level encryption, query transformation, key derivation, integrity verification, and decryption operations may therefore remain transparent to the application.

[0058] The method (200) for database security using field level encryption is explained in conjunction with the system (100) for the brevity of the invention.

[0059] The method (200) starts at step 210.

[0060] At step 220, a database middleware layer (30) is received between an application and the database, a database operation generated by the application.

[0061] At step, 230, from a declarative encryption schema, respective encryption policies and respective encryption modes is determined for a plurality of fields, wherein at least two of the plurality of fields are assigned different encryption modes.

[0062] At step 240, respective field-specific cryptographic keys are derived from a master cryptographic key using respective hierarchical field paths.

[0063] At step 250, selected field values are encrypted using the respective field-specific cryptographic keys and the respective encryption modes while preserving a structure and data types of a database record.

[0064] At step 260, a query is transformed based on compatibility between a query operator and the encryption mode associated with a target field.

[0065] At step 270, encrypted data or the transformed query is transmitted to the database.

[0066] At step 280, encrypted data is received from the database.

[0067] At step 290, integrity of the encrypted data is verified.

[0068] At step 300, the encrypted data is decrypted according to the respective encryption policies; and

[0069] At step 310, decrypted data to the application without requiring application-level encryption is provided, query-transformation, or decryption logic in the application.

[0070] The method (200) ends at 320.

[0071] Therefore, the present invention provides the advantage of providing a system (100) and a method (200) for database security using field-level encryption. The system and the method (200) provide selected fields within documents stored in a document-oriented database. The system (100) and the method (200) support deterministic encryption for fields requiring exact-match queries, order-preserving encryption for fields requiring range queries, probabilistic encryption for fields requiring enhanced confidentiality, and unencrypted handling of non-sensitive fields. Further, the system (100) and method (200) recursively process nested documents, structures, maps, arrays, slices, and database-specific data types while preserving the original structure and type of the data. Furthermore, the system (100) and the method (200) , provide backward compatibility with existing applications and database structures while improving the confidentiality, integrity, and operational usability of sensitive data stored in a document-oriented database. Moreover, the system (100) and the method (200) is simple in operation.

[0001] The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the present invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described to best explain the principles of the present invention, and its practical application to thereby enable others skilled in the art to best utilize the present invention and various embodiments with various modifications as are suited to the particular use contemplated. It is understood that various omission and substitutions of equivalents are contemplated as circumstance may suggest or render expedient, but such are intended to cover the application or implementation without departing from the spirit or scope of the claims of the present invention. , Claims:We Claim:

1. A system (100) for database security using field level encryption, the system (100) comprising: one or more processors (10); a memory (20) operatively coupled to the one or more processors (10) and configured to store instructions executable by the one or more processors (10); a database middleware interface (30) communicatively coupled between an application (32) and the database (34) and configured to receive a database (34) operation generated by the application (32); a policy configuration module (40) configured to store a declarative encryption schema defining respective encryption policies for a plurality of fields of a database record; an encryption-mode selection module (50) configured to select, for each of the plurality of fields, a respective encryption mode according to the encryption policy associated with the respective field; a key management module (60) configured to derive respective field-specific cryptographic keys from a master cryptographic key using respective field identifiers associated with the plurality of fields; an encryption module (70) configured to encrypt values of the plurality of fields using the respective field-specific cryptographic keys and the respective selected encryption modes; a query transformation module (80) configured to transform at least one query associated with the database operation according to the respective encryption policies; a database communication module (90) configured to transmit to the database the database operation including the encrypted values or the transformed query, and to receive an encrypted database record from the database; a decryption module (92) configured to decrypt encrypted values of the encrypted database record according to the respective encryption policies; and an application communication module (94) configured to provide a decrypted database record to the application (32); and a data integrity verification module (96) configured to verify integrity of the encrypted database record, wherein the database middleware interface (30), the policy configuration module (40), the encryption-mode selection module (50), the key management module (60), the encryption module (70), the query transformation module (80), the database communication module (90), the decryption module (92), the application communication module (94), and the data integrity verification module (96) are implemented by the one or more processors (10) and the memory (20), and are collectively configured to perform encryption, query transformation, integrity verification, and decryption without requiring application-level encryption, query-transformation, or decryption logic in the application (32).

2. The system (100) for database security using field level encryption as claimed in claim 1, wherein at least a first field of the database record is encrypted according to a first encryption mode and at least a second field of the database record is encrypted according to a second encryption mode different from the first encryption mode.

3. The system (100) for database security using field level encryption as claimed in claim 1, wherein the encryption modes are selected from a deterministic encryption mode configured to support equality queries, a probabilistic encryption mode configured to generate different ciphertext values for repeated instances of a same plaintext value, an order-preserving encryption mode configured to support range queries, a type-preserving encryption mode configured to preserve a database-native data type, and a plaintext mode configured to store a designated field without encryption.

4. The system (100) for database security using field level encryption as claimed in claim 1, wherein each hierarchical field identifier includes a field path representing a location of a respective field within a nested database record, and wherein the key management module (60) is configured to derive each field-specific cryptographic key by applying a key derivation function to the master cryptographic key and context information.

5. The system (100) for database security using field level encryption as claimed in claim 1, wherein the context information includes at least one of a database identifier, a collection identifier, and a key-version identifier, such that different field paths produce cryptographically distinct field-specific cryptographic keys.

6. The system (100) for database security using field level encryption as claimed in claim 1, wherein the encryption module (70) and decryption module (92) is configured to recursively traverse nested objects, embedded documents, arrays, key-value structures, or combinations thereof, identify leaf values according to the declarative encryption schema, encrypt selected leaf values while preserving a nesting arrangement and corresponding database-native data types, and distinguish database-operation syntax from field values such that the database-operation syntax is not encrypted.

7. The system (100) for database security using field level encryption as claimed in claim 1, wherein the database operation includes at least one of an insert operation, a find operation, an update operation, a delete operation, and an aggregation operation, and wherein the database-operation syntax includes at least one of an update operator, a logical query operator, a comparison query operator, and an aggregation pipeline stage.

8. The system (100) for database security using field level encryption as claimed in claim 1, wherein the query transformation module (80) is configured to encrypt a plaintext query value using the field-specific cryptographic key associated with the target field when the query operator is compatible with the encryption mode associated with the target field, and to prevent execution of the database operation and generate an incompatibility indication when the query operator is incompatible with the encryption mode.

9. The system (100) for database security using field level encryption as claimed in claim 1, wherein the query transformation module (80) is configured to recursively transform query expressions contained within at least one logical query operator or aggregation pipeline stage while preserving syntax of the logical query operator or aggregation pipeline stage.

10. The system (100) for database security using field level encryption as claimed in claim 1, wherein, the encryption module (70) is configured to encrypt a plaintext field value using a randomly generated nonce, generate a blind-index value by applying a keyed cryptographic function to the plaintext field value, and associate the blind-index value with the encrypted field value, for a field encrypted according to the probabilistic encryption mode, and wherein the query transformation module (80) is configured to generate a query blind-index value from a plaintext query value and rewrite a query to target the associated blind-index value.

11. The system (100) for database security using field level encryption as claimed in claim 1, wherein, for a field encrypted according to the deterministic encryption mode, the encryption module (70) and decryption module (92) is configured to derive a field-specific nonce key using a field path associated with the field, generate a synthetic nonce from a plaintext field value using the field-specific nonce key, encrypt the plaintext field value using an authenticated encryption algorithm and the synthetic nonce, and associate the synthetic nonce with resulting ciphertext.

12. The system (100) for database security using field level encryption as claimed in claim 1, wherein the decryption module (92) is configured to decrypt the ciphertext to recover a plaintext value, regenerate an expected synthetic nonce from the recovered plaintext value using the field-specific nonce key, compare the expected synthetic nonce with the synthetic nonce associated with the ciphertext, and reject the recovered plaintext value when the expected synthetic nonce does not correspond to the associated synthetic nonce, thereby detecting modification or relocation of the ciphertext between fields.

13. The system (100) for database security using field level encryption as claimed in claim 1, wherein the data integrity verification module (96) is configured to arrange field identifiers according to a predetermined canonical order, generate a document integrity value by applying a keyed cryptographic function to the canonically ordered field identifiers and corresponding encrypted field values, associate the document integrity value with the database record, recompute the document integrity value after retrieval of the database record, and compare the associated document integrity value with the recomputed document integrity value before providing decrypted data to the application.

14. The system (100) for database security using field level encryption as claimed in claim 1, wherein each encrypted field value is associated with metadata identifying an encryption mode and a version of the master cryptographic key used to derive the corresponding field-specific cryptographic key, and wherein the key management module (60) is configured to use a current version of the master cryptographic key for newly encrypted field values and select a historical version of the master cryptographic key for decrypting previously encrypted field values.

15. A method (200) for database security using field level encryption, the method (200) comprising steps of: receiving, at a database middleware layer (30) between an application (32) and the database (34), a database (34) operation generated by the application (32); determining, from a declarative encryption schema, respective encryption policies and respective encryption modes for a plurality of fields, wherein at least two of the plurality of fields are assigned different encryption modes; deriving respective field-specific cryptographic keys from a master cryptographic key using respective hierarchical field paths; encrypting selected field values using the respective field-specific cryptographic keys and the respective encryption modes while preserving a structure and data types of a database record; transforming a query based on compatibility between a query operator and the encryption mode associated with a target field; transmitting encrypted data or the transformed query to the database; receiving encrypted data from the database; verifying integrity of the encrypted data; decrypting the encrypted data according to the respective encryption policies; and providing decrypted data to the application (32) without requiring application-level encryption, query-transformation, or decryption logic in the application.

Documents

Sign in to open
Application documents
1 202621094763-STATEMENT OF UNDERTAKING (FORM 3) [05-08-2026(online)].pdf 05 Aug 2026
2 202621094763-POWER OF AUTHORITY [05-08-2026(online)].pdf 05 Aug 2026
3 202621094763-FORM FOR SMALL ENTITY(FORM-28) [05-08-2026(online)].pdf 05 Aug 2026
4 202621094763-FORM FOR SMALL ENTITY [05-08-2026(online)].pdf 05 Aug 2026
5 202621094763-FORM 1 [05-08-2026(online)].pdf 05 Aug 2026
6 202621094763-FIGURE OF ABSTRACT [05-08-2026(online)].pdf 05 Aug 2026
7 202621094763-EVIDENCE FOR REGISTRATION UNDER SSI(FORM-28) [05-08-2026(online)].pdf 05 Aug 2026
8 202621094763-EVIDENCE FOR REGISTRATION UNDER SSI [05-08-2026(online)].pdf 05 Aug 2026
9 202621094763-DRAWINGS [05-08-2026(online)].pdf 05 Aug 2026
10 202621094763-DECLARATION OF INVENTORSHIP (FORM 5) [05-08-2026(online)].pdf 05 Aug 2026
11 202621094763-COMPLETE SPECIFICATION [05-08-2026(online)].pdf 05 Aug 2026
12 202621094763-FORM-9 [07-08-2026(online)].pdf 07 Aug 2026
13 202621094763-MSME CERTIFICATE [19-08-2026(online)].pdf 19 Aug 2026
14 202621094763-FORM28 [19-08-2026(online)].pdf 19 Aug 2026
15 202621094763-FORM 18A [19-08-2026(online)].pdf 19 Aug 2026
16 Abstract.jpg 21 Sep 2026
17 202621094763-PATENT_APPLICATION_PUBLICATION.pdf 26 Sep 2026