-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathusers-signup.http
More file actions
40 lines (31 loc) 路 964 Bytes
/
Copy pathusers-signup.http
File metadata and controls
40 lines (31 loc) 路 964 Bytes
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
### HTTP Client example to use for '1. User Signup - POST /users/signup'
### 1. Scenario: Password not long enough
POST {{baseUrl}}/api/users/signup
Content-Type: application/json
{
"username": "user",
"password": "123"
}
### 2. Scenario: Using md5 hash algorithm, check how long it takes for a computer to decrypt that hash
#### 2.1 Create one user
POST {{baseUrl}}/api/users/signup
Content-Type: application/json
{
"username": "user1",
"password": "#12345678#"
}
#### 2.2 Create another user with the same password and check that the hashed passwords are the same
POST {{baseUrl}}/api/users/signup
Content-Type: application/json
{
"username": "user2",
"password": "#12345678#"
}
###### Implement solutions ###########
### 3. Create User - Using md5 hash algorithm, check how long it takes for a computer to decrypt that hash
POST {{baseUrl}}/api/users/signup
Content-Type: application/json
{
"username": "user",
"password": "12345678"
}