Research Article

Anticollusion Attack Strategy Combining Trust Metrics and Secret Sharing for Friendships Protection

Algorithm 1

Friendships_transform.
Input: : of the target user
Output: : the secret to share
(1)Get the s of the top friends of the target node: , , , , ;
(2);
(3)if is prime then
(4)
(5)else
(6);
(7)end if