Questions tagged [sha-3]

SHA-3 is a family of cryptographic hash functions, a successor to SHA-2.

SHA-3 is a family of cryptographic hash functions, intended to replace and .

SHA-3 was chosen by NIST in a competition started in November 2007. The winner was declared to be the Keccak family in October 2012. The other finalists in the competition were BLAKE, Grøstl, JH and Skein .

As of October 2012, SHA-3 has not yet been formally codified. It is intended that the next version of FIPS PUB 180 will specify Keccak functions with digest sizes 224, 256, 384, 512.

79 questions
0
votes
1 answer

Android Studio Problem verifying elliptic p256 signature with public key. ECDSA

I been stuck with this matter for a while. I have followed How can I get a PublicKey object from EC public key bytes? method. It's working on his example but not on mine. Not sure where went wrong. The sample works on node.js but when using the…
0
votes
1 answer

perl: using Digest::SHA3, using basic example from online, the bit value of the output puts it at 160, which says is a weak hash length(?)

i am using the following code to learn/familiarize myself with one-way password encryption, salting, and using them to verify a user on log in. it works, i store the hashed password and the salt value in my database, i can retrieve both and compare…
spewn
  • 9
  • 2
0
votes
2 answers

cryptojs and golang give different sha3 hash values

I'm trying to generate a sha3-512 hash in JS and check it in a golang server. However, cryptoJS is producing different hashes than golang. CryptoJS: CryptoJS.algo.SHA3.create().update("foo").finalize().toString(CryptoJS.enc.Hex) Output:…
user1044459
  • 57
  • 1
  • 5
0
votes
0 answers

Can't install web3 on macos

I'm having difficulties installing web3 on my mac. I've tried a number of fixes but I get the same error every time. I tried installing sha3 separately and made sure that I had Xtools installed. gyp ERR! configure error gyp ERR! stack Error:…
Craig Lou
  • 5
  • 1
0
votes
0 answers

How to generate SHA3 with openssl 1.1.1a

Edit: I extracted the SHA3 code from this question(Generate SHA-3 hash in C++ using OpenSSL library) and SHA3 is in the openssl 1.0.2q(but not 1.0.2r) version. I am trying to generate SHA3 with the openssl library. #include #include…
Ruiyu Zhu
  • 71
  • 8
0
votes
0 answers

rock Paper Scissors HMAC(SHA-3 or SHA-2) encryption

I have a game( rock Paper Scissors). How to encrypt the answer of the computer using HMAC (SHA-2 or SHA-3) and at the end of the game compare with the answer of the user? import random import hmac import hashlib import base64 options = {"r":…
Pluseg
  • 21
  • 4
0
votes
1 answer

Can sha3 output be used as a filename?

Can sha3 output be used as a filename? The question in other terms: What are the characters in a sha3 output? In case this is implementation-specific, I'm using the sha3 npm package.
Hossam El-Deen
  • 972
  • 1
  • 13
  • 27
0
votes
1 answer

Invalid length for a Base-64 char array or string : C#

I am new to C# ,Here in my web API project I have some code for hashing the user password using SHA3 . In API I have 2 methods First method is used for when new User create an account I just hashing the password and store it in the table. The…
Zhu
  • 3,679
  • 14
  • 45
  • 76
0
votes
1 answer

Why sha3 in different python's modules gives different result?

I am realized that default hashlib.sha3_256 hasher does not calculates hashes like other solution, for instance, other python's modules. Below, for instance, I comparing hashlib and sha3 implementation of sha2_256 algorithm on Python…
Alex G.P.
  • 9,609
  • 6
  • 46
  • 81
0
votes
1 answer

Keccak SHA-3-512: Missed a detail

I just want to use SHA-3-512. So I used the KeccakCodePackage. I read the specification and used them.To check my result I use the following Online-Hash-Website. My result for "Some Data"…
Citrullin
  • 2,269
  • 14
  • 29
0
votes
1 answer

Create certificate for SHA-3

I am trying to create a certificate for SHA-3. Which tool can I use to create it? Currently, I am using SHA-256. Will OpenSSL work in this case? If yes then how?
0
votes
0 answers

error in sha-3 code in python

I am trying to use SHA-3(keccak) in python.This is my code. import sys import hashlib if sys.version_info < (3, 6): import sha3 s = hashlib.sha3_512() s.name s.digest_size s.update(b"data") s.hexdigest() The error I get is as follows. Traceback…
sia
  • 1
0
votes
1 answer

Taking the exponent of a SHA3 hash function

I am trying to implement a protocol described in the paper Private Data Aggregation with Groups for Smart Grids in a Dynamic Setting using CRT in python. In order to do this, I need to calculate the following value: I know that since python 3.6,…
hY8vVpf3tyR57Xib
  • 3,574
  • 8
  • 41
  • 86
0
votes
1 answer

Keccak output wrong

I am trying to run Keccak 224 with this official library. Unfortunately I get a wrong hash from the function. I doubt that it is the fault of the library, rather I do something wrong. This is what I am trying: unsigned char input[] = "abc",…
Peter Winzer
  • 165
  • 7
0
votes
0 answers

sha3 algorithm encryption and backtracking it

I have three questions: Q1: Suppose I have a transaction ID in sequence order 1,2,3,4 so on and so forth. If I am using SHA3 algorithm on each of these transaction ID, Is there a way where I can figure out before the transaction ID gets encrypted,…
Tan
  • 1,433
  • 5
  • 27
  • 47