Secret sharing via Adi Shamir's method