[Plugin] SHA512
#41

This hash is better that whirlpool's?
Reply
#42

Quote:
Originally Posted by Edvin
Посмотреть сообщение
This hash is better that whirlpool's?
No Whirlpool is better then this.
Reply
#43

Quote:

The current strongest encryption algorithms are SHA-512, RIPEMD-320, and Whirlpool. Any one of these algorithms are worthy of protecting top secret level information for your business. - http://www.kellermansoftware.com/t-a...ngesthash.aspx
It doesn't really matter, since they are both considered the strongest algorithms, however WhirlPool was made in 2001 and SHA512 in 2000.
Reply
#44

Password with PHP: ($passcrypt = hash_hmac('sha512', $_POST['password'], DB_PASS_SALT)

6c5a950af83bb9d0110692c538f9b9455bbde016092aff3d0f 3c885881974044677c42dbb9f7c57b24a518a3dabb7f63e5f6 9061e7b9cdf50d676c0d2315ad4b


And Password with samp:
ddc89a13455bc51cd221b292d50de2bfe5509b9f1a27acc2f9 a3f1104a1b1cf9f40653a9e973f54e989af1197fb784d36f86 f17210a88616259c2dfeb5a251db


its different

as I can make the encryption is the same?
Reply
#45

Maybe they are hashed with SHA512, but hashed again with a different algorithm?
Reply
#46

Quote:
Originally Posted by Jajetin
Посмотреть сообщение
Password with PHP: ($passcrypt = hash_hmac('sha512', $_POST['password'], DB_PASS_SALT)

6c5a950af83bb9d0110692c538f9b9455bbde016092aff3d0f 3c885881974044677c42dbb9f7c57b24a518a3dabb7f63e5f6 9061e7b9cdf50d676c0d2315ad4b


And Password with samp:
ddc89a13455bc51cd221b292d50de2bfe5509b9f1a27acc2f9 a3f1104a1b1cf9f40653a9e973f54e989af1197fb784d36f86 f17210a88616259c2dfeb5a251db


its different

as I can make the encryption is the same?
You are hashing with a salt in PHP.
Use
PHP код:
$passcrypt hash('sha512'$_POST['password']); 
to get the same results.

Although, you probably want to salt it (for better security) so do something like this:
PHP код:
$passcrypt hash('sha512'$POST['password'] . 'mySalt'); 
If you do that then make sure you've done the same in PAWN:
pawn Код:
new passcrypt[128], saltedPassword[128];
format(saltedPassword, sizeof(saltedPassword), "%smySalt", password);
SHA512(saltedPassword, passcrypt, 128);
* Make sure the salt is same in PHP and PAWN.
* Concatenating the salt to the end of the password is pretty common practise so you want to come up with your own combination (like adding it to the front twice and 3 times at the back). Just make sure that if the same input is given, the same output will be produced every single time.
Reply
#47

such problem

in game:

dec364de83f56e6e9242a58c694dfba72295aadd0c8a323dfe32b48ed33701ad292 e0449a52a7fff2e19b7a9bf710165a33cd04c92d619d532414 3ada5b3123

lenght 127
Код:
new tmppass[32] = "7414474144", passhash[128]; 
format(tmppass, sizeof(tmppass), "%s%s", tmppass, salt_char);
SHA512(tmppass, passhash, sizeof(passhash));
in ucp:

dec364de83f56e6e09242a58c694dfba72295aadd0c8a323dfe32b48ed33701ad292 e0449a52a7fff2e19b7a9bf710165a33cd04c92d619d532414 3ada5b3123

lenght 128
Код:
hash('sha512', '7414474144'.SALT_CHAR)
Reply
#48

Maybe try 129 for the variable because of the null terminator.
Reply
#49

the same way..
Reply
#50

Quote:
Originally Posted by cssbart
Посмотреть сообщение
help i get error about a .dll file

says this is missing MSVCR100D.dll
Got the Same Error, installing Microsoft Visual C++ 2010 SP1 Redistributable doesn't fix the Problem
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)