1
我是OrientDB的新用戶,正在進行數據庫加密。 任何人都可以請引導我關於以下內容: 如何在OrientDB中加密數據庫?更重要的是,我們可以在加密數據庫上執行quires嗎?更改OrientDB中的加密密鑰後連接到加密數據庫
我試圖啓用AES加密,但沒有看到任何加密結果。最後,它允許數據庫連接,即使加密密鑰不正確,內容仍未加密。
根據該文件,我執行以下步驟啓用數據庫加密:
------- create database with key1 ------
config set storage.encryptionKey Ohjojiegahv3tachah9eib==
create database remote:localhost/databases/encrypted-db root 12345 plocal
document -encryption=aes
CREATE CLASS Customer
CREATE PROPERTY Customer.id integer
CREATE PROPERTY Customer.name String
CREATE PROPERTY Customer.age integer
INSERT INTO Customer (id, name, age) VALUES (01,'satish', 25)
INSERT INTO Customer SET id = 02, name = 'krishna', age = 26
INSERT INTO Customer CONTENT {"id": "03", "name": "kiran", "age": "29"}
INSERT INTO Customer (id, name, age) VALUES (04,'javeed', 21), (05,'raja', 29)
SELECT FROM Customer
disconnect
------- open encrypted database with key2 (different from key1) ------
config set storage.encryptionKey Ohj11iegahv3tac1111111==
CONNECT remote:localhost/databases/encrypted-db root 12345
SELECT FROM Customer
OrientDB將顯示Customer類的原始數據。
感謝它的工作 – usamakhanzada