The 512-bit version of the Secure Hash Algorithm.
Questions tagged [sha512]
459 questions
85
votes
1 answer
What is the length of a hashed string with SHA512?
Is the length of a string hashed with sha512 always the same?
If so, what is it?

DjOnce
- 969
- 1
- 8
- 13
51
votes
5 answers
Best practice for hashing passwords - SHA256 or SHA512?
I am currently using SHA256 with a salt to hash my passwords. Is it better to continue using SHA256 or should I change to SHA512?

econner
- 707
- 2
- 8
- 14
47
votes
7 answers
How to hash a password with SHA-512 in Java?
I've been investigating a bit about Java String encryption techniques and unfortunately I haven't find any good tutorial how to hash String with SHA-512 in Java; I read a few blogs about MD5 and Base64, but they are not as secure as I'd like to…

stack man
- 2,303
- 9
- 34
- 54
41
votes
3 answers
Why use SHA1 for hashing secrets when SHA-512 is more secure?
I don't mean for this to be a debate, but I'm trying to understand the technical rationale behind why so many apps use SHA1 for hashing secrets, when SHA512 is more secure. Perhaps it's simply for backwards compatibility.
Besides the obvious larger…

orokusaki
- 55,146
- 59
- 179
- 257
37
votes
3 answers
C# equivalent to hash_hmac in PHP
using .NET and C# i need to provide an integrity string using HMAC SHA512 to a PHP server .
Using in C# :
Encoding encoding = Encoding.UTF8;
byte[] keyByte = encoding.GetBytes(key);
HMACSHA512 hmacsha512 = new HMACSHA512(keyByte);
byte[]…

Philippe
- 415
- 1
- 4
- 6
34
votes
7 answers
Reasons why SHA512 is superior to MD5
I was wondering if I could reasons or links to resources explaining why SHA512 is a superior hashing algorithm to MD5.

Lee Warner
- 2,543
- 4
- 30
- 45
31
votes
5 answers
Why choose SHA512 over SHA384?
SHA384 is a truncated version of SHA512. But why would anyone use it? And corollary: if SHA384 is just as good as SHA512, is there any rationale in using the 512 bit version?
I am planning to use one of the algorithms to verify file integrity, so I…

jst
- 596
- 1
- 4
- 8
22
votes
2 answers
hash a password string using SHA512 like C#
I am developing logon function for my iPhone Application, so I want to hash the password using the SHA512 hashing algorithm then get the result as NSString (the result should be the same with SHA512 in C#). After spending a lot of time in the…

Son Nguyen
- 3,481
- 4
- 33
- 47
17
votes
5 answers
How to calculate sha 512 hash properly in .NET 6
In .NET 6 code from How can I SHA512 a string in C#?
var data = Encoding.UTF8.GetBytes("key");
byte[] hash;
using (SHA512 shaM = new SHA512Managed())
hash = shaM.ComputeHash(data);
Throws warning
Warning SYSLIB0021 'SHA512Managed' is…

Andrus
- 26,339
- 60
- 204
- 378
14
votes
4 answers
How to calculate a SHA-512 hash in C++ on Linux?
Is there a standard library or commonly used library that can be used for calculating SHA-512 hashes on Linux?
I'm looking for a C or C++ library.

Nathan Osman
- 71,149
- 71
- 256
- 361
14
votes
1 answer
Excel formula-based function for SHA256 / SHA512 hashing without VBA or macros
It's the year 2017 and anybody who needs to use hashes should avoid 'broken' ones such as MD5, if security is important. Has anybody found or created a way to do more secure SHA256 or SHA512 hashing in Excel, without using VBA or macros?
A…

JKVeganAbroad
- 169
- 1
- 1
- 11
14
votes
3 answers
Hash string with SHA512 in Swift
Anyone knows how to reproduce PHP hashing method hash(‘SHA512’, $value, true) in swift ? I tried to use CommonCrypto C library with this code :
extension String {
func digest(length:Int32, gen:(data: UnsafePointer, len: CC_LONG, md:…

Damien
- 3,322
- 3
- 19
- 29
12
votes
4 answers
How can I create an SHA512 digest string in Java using bouncy castle?
This unit test is failing:
public void testDigest() throws NoSuchAlgorithmException {
String hashExpected = "150a14ed5bea6cc731cf86c41566ac427a8db48ef1b9fd626664b3bfbb99071fa4c922f33dde38719b8c8354e2b7ab9d77e0e67fc12843920a712e73d558e197";
…

Lee Warner
- 2,543
- 4
- 30
- 45
11
votes
3 answers
PHP Openssl decrypt an AES Mysql Encryption
So i'm just doing some basic data encryption on my mysql tables. I followed the guidelines found here
https://dev.mysql.com/doc/refman/5.6/en/encryption-functions.html#function_aes-encrypt
But i'm running into an issue. While i know i can just use…

ipixel
- 519
- 8
- 21
11
votes
1 answer
sha512-crypt mysql and dovecot
I have a question about understanding sha512-crypt hashing. I found this tutorial to set up dovecot and postfix with mysql. I followed the tutorial (with slight modifications) and everything works fine. But there is one thing, that I do not…

Tim
- 802
- 1
- 7
- 15