102k views
5 votes
Complete the sentence.

The _ module can be used to generate pseudo-random numbers that are cryptographically secure.

1 Answer

4 votes

Step-by-step explanation:

The "secrets" module can be used to generate pseudo-random numbers that are cryptographically secure.

The "secrets" module is part of the Python standard library and provides functions for generating cryptographically secure random numbers, which are suitable for use in applications that require high levels of security, such as password generation, encryption, and authentication. The module uses a secure random number generator provided by the operating system, which is designed to produce unpredictable and unbiased random numbers that are suitable for cryptographic applications. The "secrets" module provides two functions for generating random numbers: secrets.randbits() and secrets.token_hex().

User Heyhugo
by
7.9k points