sha

Cannot output correct hash in Java. What is wrong?

本秂侑毒 提交于 2019-12-21 02:45:25
问题 In my Android app I have a SHA256 hash which I must further hash with the RIPEMD160 message digest algorithm. I can output the correct sha256 and ripemd160 hash of any string, but when I try to hash the sha256 hash with ripemd160 I get a hash which is incorrect. According to online hash calculators, the SHA256 value of the string 'test'(all lowercase) is: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 And the RIPEMD160 value of the string 'test' is:

Verify signature generated with RSA 2048-bit key, SHA256 algorithm and PKCSv1.5 padding

假装没事ソ 提交于 2019-12-19 10:38:28
问题 I have a UWA (Universal Windows Application) signing some data with the KeyCredential.RequestSignAsync method. The signature is created with: RSA 2048-bit key (public portion can be retrieved with KeyCredential.RetrievePublicKey) Hashing algorithm used is SHA256 Padding used with the signature is PKCSv1.5 And can be validated in the same UWA with the following code: public static bool VerifySignature( IBuffer buffPublicKey, IBuffer buffMessageData, IBuffer buffSignature) { bool b = false; //

using OpenSSL in Visual Studio 2012

谁都会走 提交于 2019-12-19 06:56:09
问题 I have downloaded the latest release version of Openssl from http://www.openssl.org/source/ I would like to use it in Visual Studio 2012, especially getting the md5/sha-1 hash of a file, but I can not include / setup the environment with the openssl library. To be honest I got confused what to include, and where, however I have read the README-s. I'm getting this error. Error 1 error LNK2019: unresolved external symbol _MD5_Init referenced in function _main So my question is, I have

using OpenSSL in Visual Studio 2012

泪湿孤枕 提交于 2019-12-19 06:54:50
问题 I have downloaded the latest release version of Openssl from http://www.openssl.org/source/ I would like to use it in Visual Studio 2012, especially getting the md5/sha-1 hash of a file, but I can not include / setup the environment with the openssl library. To be honest I got confused what to include, and where, however I have read the README-s. I'm getting this error. Error 1 error LNK2019: unresolved external symbol _MD5_Init referenced in function _main So my question is, I have

HMAC SHA256 hex digest of a string in Erlang, how?

删除回忆录丶 提交于 2019-12-19 05:44:51
问题 I am trying to interact with third party real time Web messaging System created and maintained by Pusher.com . Now, i cannot send anything through the API unless i produce an HMAC SHA256 hex digest of my data. A sample source code written in ruby could try to illustrate this: # Dependencies # gem install ruby-hmac # require 'rubygems' require 'hmac-sha2' secret = '7ad3773142a6692b25b8' string_to_sign = "POST\n/apps/3/channels/test_channel/events\nauth_key=278d425bdf160c739803&auth_timestamp

Fast and light JavaScript SHA-256 secure hash implementation [closed]

柔情痞子 提交于 2019-12-19 04:56:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a hash implementation that is; secure (practically impossible to invert) fast (few ms) light (few KB) runs in the browser Ideally a SHA-256 implementation, since it is widely used and therefore widely tested against. 回答1: Doing some tests suggests that forge is the fastest SHA-256 JavaScript

Why does Zipping the same content twice gives two files with different SHA1?

我怕爱的太早我们不能终老 提交于 2019-12-18 18:49:10
问题 I have run into a strange problem with git and zip files. My build script takes a bunch of documentation html pages and zips them into a docs.zip I then check this file into git. The problem I am having is that every time I re-run the build script and get a new zip file the new zip file has a different SHA1 than the previous run. My build script is calling the ant zip task. However manualy calling the macOSX zip from the Mac OS X shell gives me a different sha1 if I zip up the same directory

Google Maps API Key in release build doesn't work

浪尽此生 提交于 2019-12-18 16:30:45
问题 I'm currently developing an application for Android and I'm using Google Maps API. In developer console, I added my SHA1 certificate print, followed by my package name. Even though I put this SHA1 certificate print using keytool, I can't access to the maps. I made lots of search, but every topics brought me to answers where error were in a wrong API Key in developer console. But I took the right SHA1, the one of my certificate. Thanks in advance ! 回答1: I had this same problem, it was super

git SHA1 0000000000000000000000000000000000000000 (all zeroes), is this normal?

自古美人都是妖i 提交于 2019-12-18 13:33:08
问题 I have a yet uncommited branch in git with SHA1 0000000000000000000000000000000000000000 (all zeroes), is this normal or did I corrupt the git repository? Please don't answer yes there's one in 2^160, or 0.00000000000000000000000000000000000000000000006842277657836021% probabilities to have that SHA1. I am reasonably safe I'm not the lucky guy who got the SHA1 of 0000000000000000000000000000000000000000 in his git repository. 回答1: A commit includes, among other metadata, the commit date. So

Are there in x86 any instructions to accelerate SHA (SHA1/2/256/512) encoding?

天涯浪子 提交于 2019-12-17 18:53:51
问题 An example, in x86 are Instruction Set to hardware acceleration AES. But are there in x86 any instructions to accelerate SHA (SHA1/2/256/512) encoding, and what library is the fastet to encoding SHA on x86? 回答1: Are there in x86 any instructions to accelerate SHA (SHA1/2/256/512) encoding? It's November 2016 and the answer is finally Yes. But its only SHA-1 and SHA-256 (and by extension, SHA-224). Intel CPUs with SHA extensions hit the market recently. It looks like processors which support