Questions tagged [sha256]

sha256 stands for Secure Hash Algorithm-256. It is a hash function computed with 32-bit words. It was designed by the US National Security Agency (NSA). It is used to authenticate Debian GNU/Linux software packages, in the DKIM message signing standard and many other applications.

sha256 stands for Secure Hash Algorithm-256. It is a hash functions computed with 32-bit words. It is one of the function in SHA-2 library. SHA-2 is a set of cryptographic hash functions (SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256) published in 2001 by the NIST as a U.S. Federal Information Processing Standard (FIPS).

It was designed by US National Security Agency (NSA). It is used to authenticate Debian GNU/Linux software packages, in the DKIM message signing standard and many other applications.

1952 questions
0
votes
0 answers

Probability of two different strings having the same hash?

A property of a hash function is that the hash output is of fixed length (ex. 256). The number of possible hashes is 2^256, and the number of possible strings to be hashed is infinite. So, (obviously) there are strings (also infinite ?) with the…
user12546101
0
votes
1 answer

Error: await is only valid in async function when function is already within an async function

Goal: Get a list of files from my directory; get the SHA256 for each of those files Error: await is only valid in async function I'm not sure why that is the case since my function is already wrapped inside an async function.. any help is…
KhzEn
  • 1
  • 3
0
votes
0 answers

How can i convert php AES encryption code to c#

I'm creating an C# MVC application by calling Api, Its token encryption method is in PHP i want to convert it to C# code.Can any one help in conversion on below php code to c#? PHP Code
0
votes
1 answer

Loop through a table and encode a field with SHA256 base64 hash

I need to update a column that currently contains a plain text password with its own SHA256 base64 password. To do so I'm using a cursor to loop through each record and encode the password, but after execution all records have the same encoded…
ɐsɹǝʌ ǝɔıʌ
  • 4,440
  • 3
  • 35
  • 56
0
votes
2 answers

Oracle SQL Select Hex value to SHA256

There's a specific column (hex_values) on a table, where all the values (strings) are base16 (HEX) encoded. Is it possible to SELECT all the members of hex_values and bring the result already SHA256 hashed? For example: ------------------------- |…
Vitor Mascia
  • 109
  • 2
  • 9
0
votes
1 answer

Brute-Force Function SHA256 hashes

I've already made a python program which hashes your password to sha256. import hashlib u = input("Write 3 upper-case letters: ").upper() d = int(input("Write 4 digits from 0-9 ")) testhashed = u+str(d) key =…
0
votes
0 answers

React js react-dropzone upload file calculate sha256

I'm using react-dropzone, I would need a way to be able to calculate the sha256 of the file when the file is selected then inside the onDrop() function, to use it as a checksum for the checks I'm doing. I thought of using CryptoJS, but it doesn't…
Paul
  • 3,644
  • 9
  • 47
  • 113
0
votes
2 answers

Is there a better way to provide decent password hashing in a perl cgi script?

Ok so, I've spent days looking at codes from here and other places and I just keep piecing parts together. This script works for me, and I'm still vetting security vulnerabilities, however I have tried to create it with due diligance. I'm not a perl…
0
votes
1 answer

How to create SHA256 hash from a string

I need to create a sha256 hash of a password entered in a TextBox. I tried to use ComputeHash(string) but it only works with streams.
erosfabbri
  • 37
  • 1
  • 8
0
votes
0 answers

Execute hashed python code (base64, sha256 or whatever)

in this case I want to execute my hashed python code. but the problem is, how can I do the hash and then decode the hash that I did earlier. then execute the python code that was hashed on the python compiler. in example i have simple code…
0
votes
1 answer

How to encrypt individual field in json response using any encryption algorithm?

I have a pojo which is mapped to a json response. Below is the pojo class: @Data public class User{ private String firstName; private String middleName; private String lastName; private String ssn; private Address address } My…
Pracheer Pancholi
  • 570
  • 2
  • 7
  • 21
0
votes
1 answer

How can I disable concatenation when using hashlib's update method?

I've written a method for hashing passwords by using hashlib. I allow the user to send a password through a POST method, which is received by Flask and the password is subsequently hashed so that the hash can be checked against a stored var to see…
0
votes
2 answers

Problem with concatenating strings/ getting value from file

I have been writing a program that saves passwords in hash form, but I am trying to get a value from within my file which stores a value for the salt. For some reason, it doesn't seem to work. Here is my code: hashpass = hashlib.sha256() salt =…
M S
  • 15
  • 3
0
votes
1 answer

C# SHA256 Hashing

Below is the code I use for hashing and I am trying to store the hash in a string(strSHA256) with UTF-8 encoding. using (SHA256 sha256Hash = SHA256.Create()) { bytes = sha256Hash.ComputeHash(Encoding.UTF8.GetBytes(utf8EncodedString)); …
bhanu.cs
  • 1,345
  • 1
  • 11
  • 25
0
votes
1 answer

Converting a hex to integer in Python - equivalent for ToInt64 in C#

I am trying to convert a sha256 hash to an integer.This works in C# but I cannot get it work in Python. C# Version : string inputString = "TestString"; SHA256 sha256Hash = SHA256.Create(); byte[] bytes =…
SriramN
  • 432
  • 5
  • 19