Questions tagged as 'hash'

1
answer

Doubt on Null Byte in Bcrypt PHP

Well, I learned that PHP's Bcrypt is vulnerable to Null Byte. What tests do I have to do to see this vulnerability, and what are the constipations of this?     
asked by 04.03.2018 / 06:29
1
answer

password_hash or crypt, which brings more security?

I do not know much about hash and security, I found two functional functions and I did not know what the difference would be between them and consequently which is the safest way to save and capture passwords. My question is which one...
asked by 27.12.2015 / 23:39
1
answer

jBCrypt remains secure?

I would like to know if jBCrypt is out of date because it has not updated for two years link If yes, would you have any replacement for hashs and salts for java?     
asked by 12.07.2014 / 09:07
2
answers

php Page Protection

I found a tutorial on how to make a login system ... More problem is that when I try to block the pages only for the login of users logged in does not work although the user is logged in, I think the error is in the page functions.php when the s...
asked by 12.09.2014 / 16:11
2
answers

How to simplify the process of classifying a hash based on values

Oops, I'm new to the site, as well as Ruby. My question is: Is there a more efficient way to sort a hash according to values? I made the code below, but I'm sure it's not the most efficient way. agents = {"pedro" => 7, "lucas" => 1...
asked by 07.02.2018 / 20:08
2
answers

How to compare hashes coming from JSON in RAILS

Personal I created a web service that today receives a registry and a password, it makes a select in the bank and compares to see if the registry and password are equal, if yes it shows a few options.At that moment the password is being sent in...
asked by 31.08.2016 / 15:48
1
answer

How to verify an encrypted password during login?

When I try to log in: If I use the wrong username and password, only the contents of header and footer appear. If I use the correct username and password, login does not recognize the user: "Wrong username and password co...
asked by 25.05.2014 / 20:37
1
answer

Use "-" or "." in a linked list?

Good afternoon, doing a hash table without collisions, I created the struct list, however when compiling the code it does not accept that I use the -> prox from my struct, it asks me to use .prox. But if prox is a pointer I should not use struct...
asked by 11.07.2018 / 20:42
1
answer

How to check if the list is empty or with an element in C

typedef struct { int tamanho; nodo *inicio; } lista; typedef struct { lista **vet; int tamTabHash; int colisoes; } tabHash; tabHash *criaTabelaHash(int tamanho){ if(tamanho < 1) return NULL; tabHash* hash = (tabH...
asked by 04.07.2018 / 03:13
1
answer

How does bcrypt work?

I do not quite understand how salt of bcrypt works, in a javascript (node) code: const bcrypt = require('bcrypt'); const saltRounds = 10; async function init(plainPassword) { let salt = await bcrypt.genSalt(saltRounds); conso...
asked by 30.05.2018 / 02:30