Deck 16: Security and Encryption
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/23
Play
Full screen (f)
Deck 16: Security and Encryption
1
In the RSA system, every person has a set of two keys, a(n) ____________ one and a private (secret) one.
public
2
When sending a message using the RSA encryption algorithm, what key do we use to encrypt our message?
A) None; we do not encrypt our message
B) None; we do not use a key to encrypt our message
C) Our private key
D) Our public key
A) None; we do not encrypt our message
B) None; we do not use a key to encrypt our message
C) Our private key
D) Our public key
Our private key
3
Passwords are typically encrypted using a one-way encryption algorithm.
True
4
AES stands for Advanced Encryption ____________.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
5
The ____________ class provides access to implementations of encryption and decryption algorithms.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
6
We can call the getProviders method of the ____________ class to get a list of encryption algorithms available on a device.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
7
When calling the init method of the Cipher class, if we want to decrypt, we can pass the ____________ constant of the Cipher class as the first argument of init.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
8
PrivateKey and PublicKey are classes.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
9
Once we have built a Cipher object reference specifying that it uses RSA, the call to the doFinal method is identical to the call to doFinal if it uses another algorithm, such as AES.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
10
The getInstance method of the KeyPairGenerator class is static.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
11
The KeyPairGenerator class is abstract.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
12
The parameter of the initialize method of the KeyPairGenerator class is an int that represents the key size in bytes.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
13
To build a Cipher object reference, we call the getInstance method of the Cipher class and pass the String RSA.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
14
When receiving a message from somebody else and decrypting it using the RSA encryption algorithm, what key do we use to decrypt the message?
A) None; the message was not encrypted.
B) None; we do not use a key to decrypt our message.
C) We use the message sender's private key.
D) We use the message's sender public key.
A) None; the message was not encrypted.
B) None; we do not use a key to decrypt our message.
C) We use the message sender's private key.
D) We use the message's sender public key.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
15
Which one of these numbers is not a composite number?
A) 55
B) 253
C) 88
D) 33
A) 55
B) 253
C) 88
D) 33
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
16
To get a Cipher reference, we use a method of the Cipher class that takes one parameter. What can you say about that parameter?
A) It is an int that represents a resource.
B) It is a String that represents the name of an encryption algorithm.
C) It is a boolean (true or false; encryption or no encryption).
D) It is a char that represents the first letter of an encryption algorithm.
A) It is an int that represents a resource.
B) It is a String that represents the name of an encryption algorithm.
C) It is a boolean (true or false; encryption or no encryption).
D) It is a char that represents the first letter of an encryption algorithm.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
17
What is the return type of the getPrivate method of the KeyPair class?
A) KeyPair
B) Key
C) PrivateKey
D) Private
A) KeyPair
B) Key
C) PrivateKey
D) Private
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
18
What is the return type of the getPublic method of the KeyPair class?
A) KeyPair
B) Key
C) PublicKey
D) Private
A) KeyPair
B) Key
C) PublicKey
D) Private
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
19
77 is a composite number.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
20
The __________________ package contains classes and interfaces that encapsulate cryptology concepts.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
21
When calling the init method of the Cipher class, if we want to encrypt, we can pass the __________________ constant of the Cipher class as the first argument of init.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
22
The getEncoded method of the Key interface returns an array of __________________.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck
23
The KeyPair and KeyPairGenerator classes are in the __________________ package.
Unlock Deck
Unlock for access to all 23 flashcards in this deck.
Unlock Deck
k this deck