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

SecurityHelper::cryptPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 2
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