sha512

Difference in SHA512 between python hashlib and sha512sum tool

為{幸葍}努か 提交于 2019-12-23 08:58:21
问题 I am getting different message digests from the linux 'sha512sum' tool and the python hashlib library. Here is what I get on my Ubuntu 8.10: $ echo test | sha512sum 0e3e75234abc68f4378a86b3f4b32a198ba301845b0cd6e50106e874345700cc6663a86c1ea125dc5e92be17c98f9a0f85ca9d5f595db2012f7cc3571945c123 - $ python Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import hashlib >>> hashlib.sha512("test")

SHA512 within Silverlight is not available, is there a managed library available?

元气小坏坏 提交于 2019-12-23 07:36:28
问题 SHA512Managed is missing in Silverlight (for Windows Phone 7 CTP SDK), only upto SHA256 is available for use. Does anyone know a .NET class that I could use that offers a self-contained C# or VB.net SHA512 implementation? I need to use this for authentication to a HTTP web service. 回答1: Using HashLib from http://hashlib.codeplex.com/ will work fine. There are methods within HashLib.HashFactory.HashCryptoNotBuildIn that do not require System.Crytography . 回答2: Mono has an implementation you

SHA512 within Silverlight is not available, is there a managed library available?

不羁岁月 提交于 2019-12-23 07:34:18
问题 SHA512Managed is missing in Silverlight (for Windows Phone 7 CTP SDK), only upto SHA256 is available for use. Does anyone know a .NET class that I could use that offers a self-contained C# or VB.net SHA512 implementation? I need to use this for authentication to a HTTP web service. 回答1: Using HashLib from http://hashlib.codeplex.com/ will work fine. There are methods within HashLib.HashFactory.HashCryptoNotBuildIn that do not require System.Crytography . 回答2: Mono has an implementation you

Generating crypt() sha512 hashes in Go

廉价感情. 提交于 2019-12-22 01:48:16
问题 I am working on my authorization module in GoLang. Before we used PHP5 with the crypt function. The hash was generated like SHA-512: $6$rounds=5000$usesomesillystri$D4IrlXatmP7rx3P3InaxBeoomnAihCKRVQP22JZ6EY47Wc6BkroIuUUBOov1i.S5KPgErtP/EN5mcO.ChWQW21 And stored like that in the database. But now I need make it work also in GoLang. I have searched on Google and tried different things, such as: t512 := sha512_crypt.Crypt("rasmuslerdorf", "$6$usesomesillystringforsalt$") fmt.Printf("hash: %v\n"

Porting SHA512 Javascript implemention to Actionscript

一曲冷凌霜 提交于 2019-12-19 10:46:22
问题 I am wondering if anyone can help me in porting a SHA-512 implemention in Javascript to Actionscript. Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript. The code for sha512 in javascript can be found here: http://pajhome.org.uk/crypt/md5/sha512.html Thank you. 回答1: Here is the code ported by me. The code is separated between two files Int64.as and Sha512.as, both of them belong to the com.crypto package. com

android sha512 example

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 12:03:09
问题 Can someone provide an example for java/android on how to hash a password using PW_HASH_ITERATION_COUNT iterations of sha512 + salt? in pseudo code: hash = sha512(concat(pw,salt)); for (i = 1; i<PW_HASH_ITERATION_COUNT; i++){ hash = sha512(concat(hash,concat(pw,salt))); } Where z = concat(x,y) is the concatenation of x and y. Maybe using MessageDigest ? What would you suggest as PW_HASH_ITERATION_COUNT ? How many iterations would be the maximum so that this might even run on some older

How to decrypt SHA-512 hashed data [closed]

妖精的绣舞 提交于 2019-12-17 20:42:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Update: SHA-512 is one-way so I will need to not attempt to crack passwords because it is easier to simply reset a password. If someone is aware of getting the original password from a SHA-512 hashed text, please let me know. Otherwise, I am moving on from this question. Thank you

How to convert OpenSSL SHA-512 hash to GMP number to use in RSA encryption method

被刻印的时光 ゝ 提交于 2019-12-13 04:07:50
问题 SHA1(data, length, hash); unsigned char *labelPtr; labelPtr = hash; mpz_set_str (encrypted, labelPtr, 16); gmp_printf("hashed= %Zd\n", encrypted); encrypted equals 0? I need to get an integer from this hash so that I can perform RSA encryption. I see the hash when I debug, but cannot seem to turn this into an int . It is SHA-512 so 512 bits? Weird characters come out of printf("%s",hash); atoi gives 0 too, do I have to break up the hash by character? That would work I think. 回答1: mpz_set_str

How to convert php crypt function (SHA512) to ruby?

為{幸葍}努か 提交于 2019-12-12 09:19:32
问题 note: i am not looking for workaround, i am looking for a plain ruby solution! this question is the similar to this question, but it isn't answerd, its just a workaround to a shell commando there. i want to generate a sha512 encrypted string which is compatible with the format in debian /etc/shadow. the following create a correct string with php: $salt = 'fGn9LR75'; $hash = crypt('test', '$6$'.$salt); // hash is: // $6$fGn9LR75$YpI/vJHjEhvrYp5

C version of OpenSSL EVP_BytesToKey method

大城市里の小女人 提交于 2019-12-12 05:48:47
问题 I'm looking for C implementation of the OpenSSL EVP_BytesToKey function. This is pseudo-code explanation of the EVP_BytesToKey method (in /doc/ssleay.txt of the OpenSSL source): /* M[] is an array of message digests * MD() is the message digest function */ M[0]=MD(data . salt); for (i=1; i<count; i++) M[0]=MD(M[0]); i=1 while (data still needed for key and iv) { M[i]=MD(M[i-1] . data . salt); for (i=1; i<count; i++) M[i]=MD(M[i]); i++; } If the salt is NULL, it is not used. The digests are