Questions tagged [sha2]

sha-2 refers to the family of secure hash functions consisting of SHA-224, SHA-256, SHA-384, and SHA-512. These are defined by the US NIST in FIPS 180-4.

sha-2 refers to the family of secure hash functions consisting of SHA-224, SHA-256, SHA-384, and SHA-512. These are defined by the US NIST in FIPS 180-4.

135 questions
0
votes
1 answer

Perl read file line by line output SHA256

I'm trying to read a text file line by line and then printing out the SHA256 value in terminal afterwards. #!/usr/bin/perl use strict; use warnings; ... use Digest::SHA qw(sha256_hex); while ( my $line = <$fh> ) { print $line; print…
Perez
  • 1
  • 1
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
0 answers

Connecting a DB to NetBeans first time

This is a repost from Java Programming Forum. I am reposting here because I am concerned over low traffic. To learn about databases, I am working through this Murach book published in 2014. I am using NetBeans 8.2, Tomcat 8.0, and I have two MySQL…
Jack J
  • 1,514
  • 3
  • 20
  • 28
0
votes
1 answer

SHA-512 returns NULL even using 2 DLLs (ssleay32.dll and libeay32.dll)

My Environment: C++ Builder XE4 using VCL component Indy 10.6.0.4975 I was studying to use MD5, SHA-1, and SHA-2s. Unit1.cpp //--------------------------------------------------------------------------- #include #pragma hdrstop #include…
sevenOfNine
  • 1,509
  • 16
  • 37
0
votes
0 answers

How to get NSIS installer check for SHA2 compatibility before install on older windows machines?

This is kind of a niche case involving legacy systems. We're using NSIS 3.03 to install our software. We have a SHA2 signed driver, but are aware some people are installing in older versions of Windows (7, Server 2008), which got the update for…
Den
  • 1
0
votes
1 answer

Logic for Generating Signature - for SHA-2 Hashing (Java)

I'm using a specification document for accessing API, and it says that hash is calculated on the signature generated from the following logic: Signature = (field1 + field2 + field3 + field4 + field5 + field6) + (field7 + field8) I'm just wondering…
0
votes
0 answers

Does netsnmp 5.7.* support SHA2?

Does netsnmp 5.7.* support SHA2 ? Can we use openSSL library and make use of strong algorithms in netSNMP?
Neena
  • 51
  • 4
0
votes
1 answer

ASP.NET cryptography SHA-1 to SHA-2

Currently, I have source code that is calling external web services that is using SHA-1 cryptography and i'm currently calling these external WS by the following using System.Security.Cryptography.X509Certificates; X509Certificate2 x509Certificate2…
Theg8nj
  • 135
  • 1
  • 16
0
votes
2 answers

is there an implementation of the SHA-224 algorithm for c# in .Net?

as the title says, is there an implementation of the SHA-224 algorithm for c# in .Net? I can't seem to find any reference through it. thanks a lot in advance
Max
  • 77
  • 7
0
votes
1 answer

Calculating SHA256 twice - what for?

I'm trying to understand Bitcoin protocol, and sometimes see instructions like this: The TransactionId is defined by SHA256(SHA256(txbytes)) or The hash of the public key is generated by performing a SHA256 hash on the public key, and then…
Timur Lemeshko
  • 2,747
  • 5
  • 27
  • 39
0
votes
1 answer

Connect to MySQL using SHA2

I have access to 2 MySQL Servers (one for production and one for development). I have the host, port, database, user, password and the CA Cert file for them. I could connect to both using mysql workbench and from the windows cmd. (Yes, I have to…
Silencer310
  • 862
  • 2
  • 8
  • 25
0
votes
1 answer

bundle update broke Digest library. Trouble upgrading to OpenSSL

We did a bundle update recently that went wrong. As we understood, the support for 'digest/hmac' dropped, so I wanted to use OpenSSL instead: OLD [WORKING] CODE: def signature(str) key = EnvHelpers.google_oauth2_hmac_key …
Alex C
  • 1,334
  • 2
  • 18
  • 41
0
votes
0 answers

New SHA-2 Certificate Key on Domino 9.0.1 not loading

My old Live system (Domino 8.5.3 / Windows 2003) is out on the DMZ and needs to be upgraded to a SHA-2 certificate. So, we have built a new Test server also out in the DMZ (Domino 9.0.1 FP6 / Windows 2008) box to move the site to. I copied the…
Dan F
  • 13
  • 4
0
votes
0 answers

changing a function to use SHA256 hashing rather than SHA1 hashing

Can someone kindly help me with the following question I have the following function which works fine function Decrypt-String($Encrypted, $Passphrase, $salt, $init) { if($Encrypted -is [string]){ $Encrypted =…
user2971567
  • 51
  • 1
  • 1
  • 4
0
votes
4 answers

Password Migration - Drupal SHA2 to PHP MD5 Version

As everyone know that Drupal store password using SHA2 method which involves Encryption + Hashing + Salt on it. I have a list of passwords which are currently used by some of my clients in Drupal. Since we have migrated the whole system to Custom…
1 2 3
8 9