1
I am comparing forms using sha1 as follows
sha1($_POST['txtEmpresa'] + $_POST['txtFornecedor'] + $_POST['txtDocumento'] + $_POST['txtValor'] + $_POST['txtVencimento']);
Is there any way to reduce this code to look like this?
sha1($_POST);
or another form of encryption that meets this need? I have used md5 and it didn’t work either.
"can count parameters that you do not want", I did not understand very well could explain me? I am using so sha1(date('Y-m-d H:m') + implode(', $_POST)) based on your statement and it worked.
– WMomesso
Imagine that in the future you need to add one more field in the form that sends these
POSTS, how would the comparison with the othersha1that has ever been created before without this field? Do you realize there might be a difference? this is basically one of the concerns, but if this solved I am happy! don’t forget to mark the answer as solved :)– RFL