In today's world, Naccache–Stern knapsack cryptosystem is a topic that has become increasingly relevant. Whether in the political, social, scientific or cultural sphere, Naccache–Stern knapsack cryptosystem has captured the attention of people from all walks of life. Its impact has been felt significantly in different aspects of daily life, generating debate, reflection and action. In this article, we will explore different aspects related to Naccache–Stern knapsack cryptosystem, analyzing its implications, origin, development and future perspectives. There is no doubt that Naccache–Stern knapsack cryptosystem has marked a turning point in our society, and understanding its scope is essential to understand the current context and possible trends to follow.
The Naccache–Stern Knapsack cryptosystem is an atypical public-key cryptosystem developed by David Naccache and Jacques Stern in 1997. This cryptosystem is deterministic, and hence is not semantically secure. While unbroken to date, this system also lacks provable security.
This system is based on a type of knapsack problem. Specifically, the underlying problem is this: given integers c,n,p and v0,...,vn, find a vector such that
The idea here is that when the vi are relatively prime and much smaller than the modulus p this problem can be solved easily. It is this observation which allows decryption.
To generate a public/private key pair
The public key is then p,n and v0,...,vn. The private key is s.
To encrypt an n-bit long message m, calculate
where mi is the ith bit of the message m.
To decrypt a message c, calculate
This works because the fraction
is 0 or 1 depending on whether pi divides cs mod p.
The security of the trapdoor function relies on the difficulty of the following multiplicative knapsack problem: given recover the . Unlike additive knapsack-based cryptosystems, such as Merkle-Hellman, techniques like Euclidean lattice reduction do not apply to this problem.
The best known generic attack consists of solving the discrete logarithm problem to recover from , which is considered difficult for a classical computer. However, the quantum algorithm of Shor efficiently solves this problem. Furthermore, currently (2023), there is no proof that the Naccache-Stern knapsack reduces to the discrete logarithm problem.
The best known specific attack (in 2018) uses the birthday theorem to partially invert the function without knowing the trapdoor, assuming that the message has a very low Hamming weight.[1]