Questions tagged as 'md5'

1
answer

Use of the Big Integer class in the construction of an MD5 hash

I found in another post right here from the OS the following code example for generating a hash through MD5: String message = "teste1234"; byte[] hash = MessageDigest.getInstance("MD5").digest(message.getBytes("UTF-8")); System.out.println("MD...
asked by 27.03.2016 / 20:03
1
answer

MD5 Encryption asp.net MVC

I have to do an encryption in a web application. I am using the following method to encrypt the password. // Criptografa a senha public string GerarMD5(string Senha) { // criptografia MD5 MD5 md5Hasher = MD5.Create();...
asked by 19.06.2018 / 22:01
0
answers

Method return the same hashcode in C # and java

I have the method in C #: private static string GetMD5(string strPlain) { UnicodeEncoding UE = new UnicodeEncoding(); byte[] HashValue, MessageBytes = UE.GetBytes(strPlain); MD5 md5 = new MD5CryptoServiceProv...
asked by 15.05.2018 / 20:56
1
answer

Doubt about Cryptography in passwords [duplicate]

I would like to know the difference between MD5 and SHA256 in passwords. If there is a more secure one and when and when it is better to use one or the other.     
asked by 29.03.2018 / 16:48
0
answers

Is it safe to use session_id with MD5?

I'm taking session_id and putting it in MD5 encryption, to do a logout process. I would like to know if you have any security issues with this, so what am I doing, or am I taking some risk in the future? <a href="painel.php?logoff=true&a...
asked by 14.12.2017 / 19:23
1
answer

jquery dropzone.js with duplicate file checking using md5

If you use a simple check in the "addedfile" event of the dropzone component, it works normally by sending a file, or by adding multiple files one at a time and also selecting multiple and sending at once. myDropzone.on("addedfile", function (f...
asked by 10.05.2017 / 14:49
3
answers

Login problem with password in MD5

Login Form: <form id="1" name="1" action="pass.php" method="post"> <div class="login"> <input placeholder="Usuário" type="text" id="username" size="25" name="name" /><br> <input placeholder="Senha" id="pas...
asked by 14.10.2016 / 02:59
0
answers

How to calculate the hash value of a specific byte array

How do I calculate the hash value of a specific byte array? I'm using MD5 encryption and the code to calculate what I'm using is this: byte[] dataRegCodeToCompare = md5.digest(toHash); The variable toHash is the byte array...
asked by 10.04.2015 / 21:45
2
answers

Using "anti_injection" in an MD5 password

I am studying a bit more in depth PHP and in security issue in PHP I have used the standard anti_injection found on the internet outside and used by many function anti_injection($sql){ $sql = preg_replace(sql_regcase("/(from|select|insert|dele...
asked by 01.04.2016 / 06:46
1
answer

Error md5 offertoro [closed]

Well I'm creating a site, where users earn points by completing offers, and by completing the system it gives points. However I have the following code: <?php $oid = $_GET["oid"]; $amount = $_GET["amount"]; $id = $_GET["userid"]; $payout...
asked by 21.03.2016 / 00:14