Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The sage example in Crypto (Stallings)

When I doing the exercise of the textbook in Append -C I confront a question, it says " Write a function that takes a bitlength n and generates a modulus N of bitlength n and g less than N and relatively prime to it. "

I am confused about the meaning

does is mean that I have to use the bitlength n and generate the modulus N? ( len(bin(n)) % N)?