sha2

PBKDF2-HMAC-SHA2 test vectors

匆匆过客 提交于 2019-11-28 06:24:47
There are test vectors for PBKDF2-HMAC-SHA1 in RFC6070 . There are test vectors for HMAC-SHA2 in RFC4231 . But so far I haven't found test vectors for PBKDF2-HMAC-SHA2 anywhere. I'm most interested in SHA256, so I'll post some vectors I calculated with my implementation. I'd be happy if someone could verify/confirm them, or contribute their own. aaz I implemented PBKDF2 using the standard hashlib and hmac modules in Python and checked the output against both the RFC 6070 vectors and the vectors you posted – it matches. Here are the vectors I get with a larger dkLen to match the larger digest

Check if my SSL Certificate is SHA1 or SHA2

血红的双手。 提交于 2019-11-28 04:05:09
I have tried to find the answer to this but I couldn't find an answer... How do I check if my SSL Certificate is using SHA1 or SHA2? Reason I ask is because it might have to do with the certificate not loading on Mozilla Browers.... Any ideas? Can I check through cPanel? You can check by visiting the site in your browser and viewing the certificate that the browser received. The details of how to do that can vary from browser to browser, but generally if you click or right-click on the lock icon, there should be an option to view the certificate details. In the list of certificate fields, look

SHA-512 library for PHP

我的未来我决定 提交于 2019-11-27 19:48:02
I am searching for any crypto library that provides SHA-512 hash. Googling around I found some but SHA-512 is absent. Please suggest. If you are using PHP >= 5.3, the function openssl_digest should do the trick : echo openssl_digest('glop', 'sha512'); gives me this output (splitted in two lines to get better readibility) : 416b1861951170e1f6eb6543b0dd3d4f1994ce8da7cd82061513d3ddd1dd81111 f4ada5caf6421f1d17425c6f29bdb4a95cf84df9eda4164f5a762acbb490a68 (And you can use openssl_get_md_methods to get the list of available digest methods) And with PHP 5.1 or 5.2, you have the hash function : echo

Check if my SSL Certificate is SHA1 or SHA2

戏子无情 提交于 2019-11-27 05:16:28
问题 I have tried to find the answer to this but I couldn't find an answer... How do I check if my SSL Certificate is using SHA1 or SHA2? Reason I ask is because it might have to do with the certificate not loading on Mozilla Browers.... Any ideas? Can I check through cPanel? 回答1: You can check by visiting the site in your browser and viewing the certificate that the browser received. The details of how to do that can vary from browser to browser, but generally if you click or right-click on the

SHA-512 library for PHP

痞子三分冷 提交于 2019-11-27 04:24:07
问题 I am searching for any crypto library that provides SHA-512 hash. Googling around I found some but SHA-512 is absent. Please suggest. 回答1: If you are using PHP >= 5.3, the function openssl_digest should do the trick : echo openssl_digest('glop', 'sha512'); gives me this output (splitted in two lines to get better readibility) : 416b1861951170e1f6eb6543b0dd3d4f1994ce8da7cd82061513d3ddd1dd81111 f4ada5caf6421f1d17425c6f29bdb4a95cf84df9eda4164f5a762acbb490a68 (And you can use openssl_get_md

PBKDF2-HMAC-SHA2 test vectors

亡梦爱人 提交于 2019-11-27 01:19:55
问题 There are test vectors for PBKDF2-HMAC-SHA1 in RFC6070. There are test vectors for HMAC-SHA2 in RFC4231. But so far I haven't found test vectors for PBKDF2-HMAC-SHA2 anywhere. I'm most interested in SHA256, so I'll post some vectors I calculated with my implementation. I'd be happy if someone could verify/confirm them, or contribute their own. 回答1: I implemented PBKDF2 using the standard hashlib and hmac modules in Python and checked the output against both the RFC 6070 vectors and the

Is calculating an MD5 hash less CPU intensive than SHA family functions?

孤街醉人 提交于 2019-11-26 22:17:17
Is calculating an MD5 hash less CPU intensive than SHA-1 or SHA-2 on "standard" laptop x86 hardware? I'm interested in general information, not specific to a certain chip. UPDATE: In my case, I'm interested in calculating the hash of a file. If file-size matters, let's assume its 300K. Yes, MD5 is somewhat less CPU-intensive. On my Intel x86 (Core2 Quad Q6600, 2.4 GHz, using one core), I get this in 32-bit mode: MD5 411 SHA-1 218 SHA-256 118 SHA-512 46 and this in 64-bit mode: MD5 407 SHA-1 312 SHA-256 148 SHA-512 189 Figures are in megabytes per second, for a "long" message (this is what you

Are there any SHA-256 javascript implementations that are generally considered trustworthy?

↘锁芯ラ 提交于 2019-11-26 18:31:05
I am writing a login for a forum, and need to hash the password client side in javascript before sending it on to the server. I'm having trouble figuring out which SHA-256 implementation I can actually trust. I was expecting there to be some kind of authoritative script that everyone used, but I'm finding loads of different projects all with their own implementations. I realize using other people's crypto is always a leap of faith unless you're qualified to review it yourself, and that there is no universal definition of "trustworthy", but this seems like something common and important enough

Is calculating an MD5 hash less CPU intensive than SHA family functions?

删除回忆录丶 提交于 2019-11-26 08:15:01
问题 Is calculating an MD5 hash less CPU intensive than SHA-1 or SHA-2 on \"standard\" laptop x86 hardware? I\'m interested in general information, not specific to a certain chip. UPDATE: In my case, I\'m interested in calculating the hash of a file. If file-size matters, let\'s assume its 300K. 回答1: Yes, MD5 is somewhat less CPU-intensive. On my Intel x86 (Core2 Quad Q6600, 2.4 GHz, using one core), I get this in 32-bit mode: MD5 411 SHA-1 218 SHA-256 118 SHA-512 46 and this in 64-bit mode: MD5

Are there any SHA-256 javascript implementations that are generally considered trustworthy?

ぃ、小莉子 提交于 2019-11-26 03:51:18
问题 This question was migrated from Information Security Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I am writing a login for a forum, and need to hash the password client side in javascript before sending it on to the server. I\'m having trouble figuring out which SHA-256 implementation I can actually trust. I was expecting there to be some kind of authoritative script that everyone used, but I\'m finding loads of different projects all with their own