[Tutorial] Properly Securing Passwords
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
I've not actually timed the code, so you could be right, but don't forget that PHP can handle multiple connections at once in separate threads so longer running tasks are not as much of a problem.
I checked how long it takes to do that with Whirlpool and it was about 315ms on average (with i7-2600).

The CPU usage of one core increased to 100% during this, so this indeed is a resource intensive operation. This might result in less smooth gaming experience, particularly with low-end servers.

Just for comparison: "A PC running a single AMD Radeon HD7970 GPU, for instance, can try on average an astounding 8.2 billion password combinations each second, depending on the algorithm used to scramble them.", http://arstechnica.com/security/2012...under-assault/


In case someone cares, here's the script I used:
pawn Код:
main()
{
    new s_time = GetTickCount();

    new buffer[129];
    WP_Hash(buffer, sizeof(buffer), "password123");

    new i = 0;
    while(i++ != 65536)
        WP_Hash(buffer, sizeof(buffer), buffer);

    printf("%d", GetTickCount() - s_time);
    return 1;
}
Reply


Messages In This Thread
Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 00:59
Re: Properly Securing Passwords - by Luis- - 22.02.2013, 08:47
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 10:55
Re: Properly Securing Passwords - by Babul - 22.02.2013, 11:12
Re: Properly Securing Passwords - by Johnson_boy - 22.02.2013, 12:00
Re: Properly Securing Passwords - by Jstylezzz - 22.02.2013, 12:02
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 13:25
Re: Properly Securing Passwords - by Vince - 22.02.2013, 14:02
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 14:06
Re: Properly Securing Passwords - by Vince - 22.02.2013, 14:40
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 16:29
Re: Properly Securing Passwords - by Vince - 22.02.2013, 16:56
Re: Properly Securing Passwords - by Johnson_boy - 22.02.2013, 17:39
Re: Properly Securing Passwords - by Johnson_boy - 25.02.2013, 18:28
Re: Properly Securing Passwords - by Johnson_boy - 26.02.2013, 06:59
Re: Properly Securing Passwords - by playbox12 - 26.02.2013, 08:07
Re: Properly Securing Passwords - by SchurmanCQC - 08.07.2013, 15:27
Re: Properly Securing Passwords - by iTheScripter - 08.07.2013, 21:21
Re: Properly Securing Passwords - by Mindcode - 09.07.2013, 12:54
Re: Properly Securing Passwords - by BabyBauer - 17.07.2018, 14:54
Re: Properly Securing Passwords - by IdonTmiss - 17.07.2018, 17:43
Re: Properly Securing Passwords - by Calisthenics - 17.07.2018, 17:54
Re: Properly Securing Passwords - by AmigaBlizzard - 22.07.2018, 10:03

Forum Jump:


Users browsing this thread: 4 Guest(s)