Cryptography Lab Flashcards
What is the primary use of OpenSSL?
A. To manage public-key infrastructures.
B. To implement cryptographic functions.
C. To compress encrypted files.
D. To store cryptographic keys securely.
B
Which command generates a private key using OpenSSL?
A. openssl genrsa
B. openssl enc
C. openssl sign
D. openssl x509
A
Which library is a fork of OpenSSL?
A. BoringSSL
B. GnuPG
C. LibreSSL
D. Crypto++
C
What is the main characteristic of symmetric cryptography?
A. It uses a public and private key pair.
B. It uses the same key for encryption and decryption.
C. It only works on plaintext.
D. It requires a Certificate Authority (CA).
B
Which command encrypts a file using AES in OpenSSL?
A. openssl genrsa
B. openssl dgst
C. openssl enc
D. openssl hash
C
Which of the following is a symmetric encryption algorithm?
A. RSA
B. AES
C. ECC
D. Diffie-Hellman
B
What is a key feature of asymmetric cryptography?
A. Uses the same key for encryption and decryption.
B. Requires no keys for encryption.
C. Uses a public and private key pair.
D. Encrypts only small amounts of data.
C
Which algorithm is commonly used in asymmetric cryptography?
A. AES
B. RSA
C. DES
D. MD5
B
What does the openssl rsautl command do?
A. Generates RSA keys.
B. Signs a message using RSA.
C. Encrypts or decrypts data using RSA.
D. Creates a self-signed certificate.
C
What is the primary purpose of a hash function?
A. To compress data.
B. To verify data integrity.
C. To encrypt data.
D. To generate keys.
B
Which of these is a common cryptographic hash algorithm?
A. RSA
B. AES
C. SHA-256
D. Diffie-Hellman
C
What does the openssl dgst command do?
A. Encrypts a file.
B. Generates a hash.
C. Creates a private key.
D. Validates a digital certificate.
B
What is the primary advantage of ECC over RSA?
A. Faster encryption.
B. Requires shorter keys for equivalent security.
C. Uses symmetric encryption.
D. Supports larger ciphertexts.
B
What type of cryptography is ECC classified as?
A. Symmetric
B. Asymmetric
C. Hash-based
D. Quantum-resistant
B
Which command is used to generate an ECC key pair in OpenSSL?
A. openssl genrsa
B. openssl ecparam
C. openssl enc
D. openssl sign
B
What is the primary purpose of Diffie-Hellman?
A. Encrypting data.
B. Hashing data.
C. Secure key exchange.
D. Creating digital signatures.
C
What mathematical problem underpins Diffie-Hellman?
A. Factoring large primes.
B. Solving discrete logarithms.
C. Modular addition.
D. Matrix multiplication.
B
Which OpenSSL command generates Diffie-Hellman parameters?
A. openssl genrsa
B. openssl dhparam
C. openssl enc
D. openssl x509
B
What is a primary purpose of a digital signature?
A. Compressing data.
B. Ensuring data integrity and authenticity.
C. Encrypting data.
D. Performing key exchanges.
B
Which algorithm is commonly used for creating digital signatures?
A. SHA-256
B. AES
C. RSA
D. MD5
C