» Home » SHA1 » Page 1
Does system.security.cryptography.sha1 use OpenSSL library's implementation of SHA1 algorithm?
by SeaSerpent in Programming Languages

or is the algorithm custom implemented by Microsoft? i tested that SHA1 computed using OpenSSL on mac is equivalent to the hash computed in C# using system.security.cryptography.sha1.

Getting the SHA1 block from GNAT.SHA1
by Fremont in Web Design

I am using GNAT.SHA1 to create a SHA1 hash of a string in Ada. My code base is small, so I'd like to avoid importing any libraries to the project that aren't provided by my compiler, hence I'm using GNAT.SHA1. As far as I'm aware, the only "public" methods for retrieving the hash is in String form via the Digest function. I would

Python HMAC-SHA1 vs Java HMAC-SHA1 different results
by ThF in Java

I borrowed the HMAC-SHA1 Java code from http://tools.ietf.org/html/rfc6238 and adapted slightly to hardcode it to use one known key/message pair with known output.

I then tried to write the same code in Python to verify the results, however I'm getting different values in Python and Java.

The Java values are known to be good.

Java code:


I have .Net code uses byte array and get sha1 value but in php i cannot use array to sha1
by David Colebatch in PHP

I have .net code that need to be converted to PHP but I got value $bytearray[] in php need to do sha1 how to do that in PHP....

Pls help

Is it possible to convert a 40-character SHA1 hash to a 20-character SHA1 hash?
by undeinpirat in Programming Languages

My problem is a bit hairy, and I may be asking the wrong questions, so please bear with me...

I have a legacy MySQL database which stores the user passwords & salts for a membership system. Both of these values have been hashed using the Ruby framework - roughly like this:

hashedsalt =

Help with SHA1 or MD5 in PHP
by John Tate in PHP

I have created a form that inserts the entered data into the database. It works perfectly except when I put SHA1('$password') into the INSERT INTO VALUSE tag. If I put only '$password it works fine.

Putting SHA1 displays - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1


TAGS : Help with SHA1

PHP how sha1 get this?
by Floubadour in Programming Languages

I have my own little website and encrypting with sha1, now i try connect it to a SMF forum, but the sha1 codes is not the same?

My code

$password = "thisisatestpass";
echo $encrypted_password; //03d858ce5f3b29b153b0392f196cff6f6e8684d0

SMF: 78481983d348ce4fbfabaccbb59af8ea95471f0c

TAGS : sha1 this

Encryption using SHA1
by Seba in Development Tools & Services

I am developing a large application and i need encryption when a data is traveling between two machines in different continents. I have never worked on encryption. I want a simple encryption which can be handled in PHP / Ruby / Python without any dependencies.

So i decided to use HMAC SHA1.

$pad=hash_hmac("sha1","The quick brown....","mykey");


how do I use php sha1 hex correctly?
by comphollic in PHP

How can I write this code by php and get similar results?

Build MSG for SHA calc

MSG_TXT = "8F"+"08"+"1234567890123470"+"08"+"1234567890123470"+"0743210987654321"+"08"
Convert MSG_TXT to MSG_BIN [] = {$8F,$08,$12,$34,$56, ..... $65,$43,$21,$08}
SHA-1(MSG_BIN[]) = 9E667331662BE10D78D56F75D6899F764212C5C1

this code is working in delphi

TAGS : sha1 correctly

Hashing Using SHA1
by Denmark in Programming Languages

I am doing an enhancement on our system and there is this other application that is already doing the hashing / ecryption but nobody knows what algorithm was used and we do not have access to the code. I have to do the same hashing using java or javascript for our system because I need to perform a search so I need to pass the correct hashed/encrypted value. I only have the sample data saved in

TAGS : Hashing Using SHA1

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .