Ring-LWE Tools

The following are tools to perform a Ring-LWE El Gamal encryption.

Converting Letters to Numbers

Use the Text to Integer tools.

Find a prime number

How to generate the ring $R_p$

Choose a dimension $n$, then generate the Ring-LWE ring.

Example operations in the ring

Generate random elements of the ring

randint(a,b) gives an integer between a and b inclusive

Generate random short elements of the ring

Just an extra box for computations

Just an extra box for computations

Just an extra box for computations