FAQ Database Discussion Community


openSSL how to sign a certificate with SHA256

ssl,openssl,ssl-certificate,sha256
I would like to know how to use the openSSL tools to sign a certificate signing request with sha256 as the message digest. I don't quite understand if the digest is already computed in the request, or if it is computed by the CA. For creating the request, the tool...

PHP/WEB: How to store hashed passwords

php,security,hash,sha256
I understand how to hash/salt/etc passwords on a php page. However, I do not know how to actually store those passwords For instance, if I just need to have a PHP document validate one password against another (that is stored on the server), how do I actually store the password...

Java 1.4 SHA265 Issue?

java,security,sha256,java1.4
I'm currently supporting a legacy e-commerce application that runs on Java 1.4. I understand that 1.4 does not support SSL certificates signed with SHA256, is this correct and will I have issues establishing connections with other sites requesting the use of this certificate? Are there any known workarounds to solve...

node.js crypto signature and openssl signature does not match

node.js,openssl,rsa,digital-signature,sha256
I wanted to perform RSA-SHA512 on a file in node.js. I could calculate sha512 hash of the given data file which matches with that of openssl's. However when trying to get the digital signature on the same hash, node.js signature differs from openssl signature. Below is an example code snippet:...

A VB.NET equivalent of a PHP hash function

php,vb.net,hash,sha256
I am having trouble converting this PHP code to VB. $hashpw = hash('sha256', $salt.$password.$salt) I have this VB code Public Function HashPassword(ByVal Password As String, ByVal Salt As String) As String Dim pwd As String = Salt & Password & Salt Dim hasher As New Security.Cryptography.SHA256Managed() Dim pwdb As Byte()...

Iterative hashing returns different values in Python and Java

java,python,sha256
I'm trying to port a python (2.7) script to Java. It iterates a sha256 hash several times but they end up with different results. I've noticed the first time they return the same result, but from there on it differs. Here is the Python implementation: import hashlib def to_hex(s): print...

Why SHA256 hashes finish with “ = ”?

base64,behavior,sha256
I've made a Webservice which returns a security Token after a successful authentification. However when debugging I noticed that every hash the webservice returned finishes with "=" such as: "tINH0JxmryvB6pRkEii1iBYP7FRedDqIEs0Ppbw83oc=" "INv7q72C1HvIixY1qmt5tNASFBEc0PnXRSb780Y5aeI=" "QkM8Kog8TtCczysDmKu6ZOjwwYlcR2biiUzxkb3uBio=" "6eNuCU6RBkwKMmVV6Mhm0Q0ehJ8Qo5SqcGm3LIl62uQ=" "dAPKN8aHl5tgKpmx9vNoYvXfAdF+76G4S+L+ep+TzU=" "O5qQNLEjmmgCIB0TOsNOPCHiquq8ALbHHLcWvWhMuI=" "N9ERYp+i7yhEblAjaKaS3qf9uvMja0odC7ERYllHCI="...

Hashes not similar between PHP and Paw REST Client

php,hmac,sha256,paw-app
I'm building a HMAC API and I have issues testing the hashing with Paw. On Paw I have this payload: GET:/hello/world:"":9a6e30f2016370b6f2dcfb6880501d7f2305d69bout and a custom HMAC-SHA256 variable (actually function like this that sets it in the X-Hash header. X-Hash: 4Cq2yehWumDcUk1dYyfhm6qWjJVBkOCB8o12f5l0WGE= In my PHP API I have the same thing: GET:/hello/world:"":9a6e30f2016370b6f2dcfb6880501d7f2305d69bout and...

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

freebsd,authorize.net,sha256
I have a FreeBSD server FreeBSD hotspot.brightlan.net 6.2-RELEASE-p6 FreeBSD 6.2-RELEASE-p6 #0: Sat Jul 21 13:42:25 EDT 2007 On this server I have an application in php using curl which connects to Authorize.net through their api. Recently they updated their SSL certificates to support sha256 and hence the SSL certificate also...

Is it safe (in matter of uniqueness) to use UUID to generate a unique identifier for specific string?

java,hash,uuid,sha256
String myText; UUID.nameUUIDFromBytes((myText).getBytes()).toString(); I am using above code to generate a representative for specific texts. For example 'Moien' should always be represeted with "e9cad067-56f3-3ea9-98d2-26e25778c48f", not any changes like project rebuild should be able to change that UUID. The reason why I'm doing this is so that I don't want those...

SHA256 / SHA512: MySQL Code for Password Hashing and Salting

mysql,sql,hash,salt,sha256
I need some help understanding how to hash and salt passwords for users in SQL using SHA256 or SHA512. I think for each user I have to generate a different salt? How do I check the password at login and update and existing password in MySQL? I used this resource...

laravel verify shopify webhook

laravel,shopify,sha256,webhooks,verify
How can I verify my shopify webhooks in laravel? Currently I'm doing the following: //Validate secret if ( Request::header( 'X-Shopify-Hmac-Sha256' ) ) { $hmac_header = Request::header( 'X-Shopify-Hmac-Sha256' ); $data = Request::json(); $calculated_hmac = base64_encode( hash_hmac( 'sha256', $data, Config::get( 'constants.SHOPIFY_APP_SECRET' ), true ) ); if ( $hmac_header != $calculated_hmac ) {...