Research Article
Tree-Based Public Key Encryption with Conjunctive Keyword Search
Algorithm 1
Converting a document into a “0-1” vector.
Input: a keyword set of a document and a group of keyword sets . | Output: a “0-1” vector for the document. | (1) | Creates a zero vector whose length is . | (2) | fordo | (3) | fordo | (4) | ifthen | (5) | = 1; | (6) | end if | (7) | end for | (8) | end for | (9) | = 1; | (10) | return; |
|