Today we are going to discuss with you the Oracle Spatial Data Encryption issue. The information I saw on the relevant website two days ago is very useful, so I will share it with you today. I hope it will help you in this regard.
Features of Oracle 9i2:
1. the return value is a function of the custom object type. For example, SDO_GEOMETRY data type.
2. You can use Java or C to write stored procedures.
The advanced Oracle Spatial function can use a user-defined function with the return value of the SDO_GEOMETRY data type to obtain Spatial data as a geometric column.
Oracle Spatial Data Encryption implementation:
1. Simple data encryption.
1) create a user-defined function that returns the SDO_GEOMETRY data type, decrypt the SDO_GEOMETRY data from BLOB (or any other data type) data, and return the data.
2) In the decryption process, you need to input a key parameter to the function. This key parameter comes from your client or Web application.
In this way, no one else can parse the data stored in Spatial.
2. Advanced Oracle Spatial Data encryption.
1) Use the C language to create a user-defined function with the return value of the SDO_GEOMETRY data type, decrypt the SDO_GEOMETRY data from BLOB (or any other data type) data, and return the data. This step requires OCI interface-related programming technology, so the implementation is more difficult.
2) the C language program reads the hardware code of the machine and obtains the server key after computation.
3) when reading data, you also need to input the client key parameters to the function. The combination of the two keys is the final key that can decrypt the data. Of course, Oracle Spatial Data Encryption is also required when data is stored in the database.
In this way, your space data can only be obtained by specific clients and servers, and cannot be obtained by other programs.