Completed
Push — master ( 1c7cd5...36e3eb )
by Maxim
04:56
created

SecurityHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A cryptPassword() 0 3 1
1
<?php
2
3
namespace WebComplete\core\utils\helpers;
4
5
class SecurityHelper
6
{
7
8
    /**
9
     * @param string $password
10
     * @param string $salt
11
     *
12
     * @return string
13
     */
14
    public function cryptPassword(string $password, string $salt): string
15
    {
16
        return \strtoupper(\md5(\md5($salt) . \md5($password)));
17
    }
18
}
19