Quote:
Originally Posted by _Zume
Este й o ciclo que deseja.
PHP код:
#include <a_samp>
#define SALT_PASS "78sdjs86d2h"
main(){
new
PasswordAbsolute[64 + 1];
new
inputtext[64] = "Hello";
// Register password to hash
SHA256_PassHash(inputtext, SALT_PASS, PasswordAbsolute, sizeof PasswordAbsolute); // MyHash have now the password hashed.
printf("inputtext hashed:\n\t%s", PasswordAbsolute);
// Verify Hash
new
inputlogin[64] = "Hell",
loginHash[64 + 1];
SHA256_PassHash(inputlogin, SALT_PASS, loginHash, sizeof loginHash);
if(!strcmp(loginHash, PasswordAbsolute)){
print("The password is valid");
}
else{
//
print("The password not is same with the PasswordAbsolute");
// change inputlogin ->
format(inputlogin, sizeof inputlogin, "Hello");
SHA256_PassHash(inputlogin, SALT_PASS, loginHash, sizeof loginHash);
// now is correct.
printf("inputLogin:\n\t%s\n\nPasswordAbsolute:\n\t%s", loginHash, PasswordAbsolute);
}
}
|
eu nгo entendi muito bem isso nгo