Algorithm 2: Hashing.

Input: < searchable ciphertext (key/value ) >

Output: < splitting searchable ciphertext (key/value ) >

1. #include

2. #include

3. using namespace std;

4. class MyHash

5. {private: string ** table; int * maxind;

6. long width;

7. long depth;

8. protected: bool insert(long value,string s);

9. void printone(long v);

10. public:MyHash(long N, long Depth);

11. long apply(string s);

12. void printall ();