Từ khóa: Lược đồ thủy vân, thuộc tính văn bản, ảnh nhị phân
I. GIỚI THIỆUTrong vài năm gần đây, các nhà nghiên cứu đã phát triển một số kỹ thuật thủy vân để bảo vệ bản quyền các cơ sở dữ liệu quan hệ [2], [3]. Các kỹ thuật này sử dụng khóa thủy vân trong lược đồ thủy vân. Nhờ vào khóa này, người chủ của sản phẩm sẽ có thể chứng minh chủ quyền của mình đối với sản phẩm.Các tác giả A. Al-Haj và A. Odeh [2], Pinn J. Z. và A. Fr. Zung [7] đã đề xuất một lược đồ thủy vân cơ sở dữ liệu quan hệ để bảo vệ bản quyền bằng cách chèn thêm ảnh nhị phân vào các thuộc tính văn bản chứa nhiều từ. Tư tưởng của các lược đồ này là nhúng ảnh nhị phân vào thuộc tính văn bản chứa nhiều từ. Nhược điểm của lược đồ này là độ an toàn không cao nếu để lộ thuật toán nhúng.Khắc phục nhược điểm đó, bài báo [9] đưa ra lược đồ thủy vân cải tiến. Trong thuật toán nhúng thủy vân, thay vì việc chia nhóm tuần tự và không phụ thuộc vào bất kỳ một tham số nào, lược đồ cải tiến đưa thêm vào tham số khóa thủy vân và sử dụng hàm hash trong việc chia nhóm. Lược đồ cải tiến, tính bền vững không thay đổi nhưng độ an toàn cao hơn so với lược đồ của Ali Al-Haj và Ashraf Odeh A. Al-Haj và A. Odeh [2], Pinn J. Z. và A. Fr. Zung [7].Các lược đồ đã đề xuất ở trên chỉ có thể nhúng một ảnh nhị phân có kích thước nhỏ và đòi hỏi xâu nhúng phải dài. Trong lược đồ đề xuất, chúng tôi đưa ra một lược đồ thủy vân có thể nhúng ảnh nhị phân có kích thước bất kỳ mà không cần quan tâm đến độ dài xâu nhúng.Trong phần tiếp theo chúng tôi sẽ trình bày về lược đồ thủy vân đề xuất. Phần 3 là chứng minh tính đúng đắn của lược đồ thủy vân đề xuất. Thử nghiệm lược đồ thủy vân trong phần 4. Phần cuối là kết luận.
II. LƯỢC ĐỒ THỦY VÂNCho quan hệ r gồm ω bộ thuộc lược đồ quan hệ R(P, A 1 , ..., A w , .... A γ ), trong đó P là thuộc tính khóa chính, A w là thuộc tính kiểu văn bản chứa nhiều từ được chọn để thủy vân, ví dụ như thuộc tính về họ tên, địa chỉ, quê quán. Gọi Sotu(r i .A w ) là số từ trong thuộc tính A w của bộ r i (i = 1, 2, ..., ω). Ảnh nhị phân được nhúng có M dòng và N cột.Ý tưởng chính của kỹ thuật này [2], [7] xuất phát từ việc nhúng ảnh nhị phân vào một thuộc tính không phải số chứa nhiều từ. Trong lược đồ này, các điểm ảnh của ảnh nhị phân sẽ được phân đoạn thành M xâu nhị phân ngắn có độ dài N. Các xâu nhị phân này sẽ được đổi sang dạng thập phân để nhúng lần lượt vào thuộc tính văn bản có chứa nhiều từ của các bộ trong quan hệ. Các từ trong thuộc tính kiểu văn bản được viết cách nhau đúng một dấu cách. Việc nhúng thủy vân được thực hiện rất đơn giản. Giả sử giá trị thập phân của xâu nhị phân thứ j là d j thì để thủy vân giá trị này vào thuộc tính văn bản, chỉ việc thêm một dấu cách vào sau từ thứ d j+1 của xâu văn bản này, các khoảng cách còn lại của xâu vẫn giữ nguyên. Để làm được điều đó cần phải chọn ảnh nhị phân phù hợp với các quan hệ cần thủy vân hay điều kiện để có thể nhúng ảnh nhị phân là số bộ của quan hệ phải chia hết cho M và thỏa mãn 2N < l, với l = min{Số từ của r i .A w , i = 1, 2, .., ω}.Mặt khác việc chọn ảnh nhị phân cũng là điều phải đáng quan tâ...