-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpassword_hashers.yaml
77 lines (77 loc) · 3.79 KB
/
password_hashers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
questions:
-
uuid: 1eebf878-8ba1-625a-9ae7-99d84c92580c
question: 'What is the purpose of security encoders in security.yml?'
answers:
- { value: 'Encode user passwords using given algorithm', correct: true }
- { value: 'Encrypt a HTTP response', correct: false }
- { value: 'Encode all data in the application database', correct: false }
help: 'https://symfony.com/doc/current/reference/configuration/security.html#encoders'
-
uuid: 1eebf878-8ba6-61ba-bd2f-99d84c92580c
question: "What's the default hasher encoding the users passwords ?"
answers:
- { value: bcrypt, correct: false }
- { value: auto, correct: true }
- { value: md5, correct: false }
- { value: sha2, correct: false }
help: 'https://symfony.com/doc/current/security/passwords.html#configuring-a-password-hasher'
-
uuid: 1eebf878-8ba6-620a-90ff-99d84c92580c
question: "What's the goal to set the hasher password encoder to plaintext in some kind of environment ?"
answers:
- { value: 'to see the password in database', correct: false }
- { value: 'to test the encoder', correct: false }
- { value: 'to migrate the password to a new hasher', correct: false }
- { value: 'to run the tests faster', correct: true }
help: 'https://symfony.com/doc/current/security/passwords.html#configuring-a-password-hasher'
-
uuid: 1eebf878-8ba6-62f0-a65c-99d84c92580c
question: 'What is the interface you need to call in your controller to get the $passwordHasher ? $hashedPassword = $passwordHasher->hashPassword( $user, $plaintextPassword );'
answers:
- { value: UserPasswordHasherInterface, correct: true }
- { value: HasherInterface, correct: false }
- { value: UserHasherInterface, correct: false }
- { value: PasswordInterface, correct: false }
- { value: PasswordHasherInterface, correct: false }
help: 'https://symfony.com/doc/current/security/passwords.html#hashing-the-password'
-
uuid: 1eebf878-8ba6-634a-95a3-99d84c92580c
question: 'Whats the configuration you need to set to migrate a password hasher to a new one manually ?'
answers:
- { value: migrate_from, correct: true }
- { value: migrate_to, correct: false }
- { value: migrate_hasher, correct: false }
- { value: migrate_encoder, correct: false }
help: 'https://symfony.com/doc/current/security/passwords.html#configure-a-new-hasher-using-migrate-from'
-
uuid: 1eebf878-8ba6-639a-87b2-99d84c92580c
question: 'What are the supported hasher'
answers:
- { value: auto, correct: true }
- { value: sha2, correct: false }
- { value: bcrypt, correct: true }
- { value: md5, correct: false }
- { value: sodium, correct: true }
- { value: PBKDF2, correct: true }
- { value: 'custom hasher', correct: true }
help: 'https://symfony.com/doc/current/security/passwords.html#supported-algorithms'
-
uuid: 1eebf878-8ba6-63ea-9be2-99d84c92580c
question: 'What the default cost value of the bcrypt beteen 4 and 31, which each increment double the memory cost ?'
answers:
- { value: '4', correct: false }
- { value: '7', correct: false }
- { value: '11', correct: false }
- { value: '13', correct: true }
- { value: '20', correct: false }
- { value: '24', correct: false }
- { value: '26', correct: false }
help: 'https://symfony.com/doc/current/security/passwords.html#the-bcrypt-password-hasher'
-
uuid: 1eebf878-8ba6-643a-aa7c-99d84c92580c
question: 'In a test environment configuration, will the cost of brcypt set to 4 will render the tests faster ?'
answers:
- { value: 'Yes', correct: true }
- { value: 'No', correct: false }
help: 'https://symfony.com/doc/current/security/passwords.html#the-bcrypt-password-hasher'