sha512

Poloniex C# Trading API webRequest comes back (403) Forbidden

荒凉一梦 提交于 2019-12-11 12:03:52
问题 I have my code down to the essentials for testing access, but am receiving the good old error(403) from the server, I have verified for double-sure I am using the correct API Key/Secret pair. My Code (C# via Unity 3D) is as follows: using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using System.Security.Cryptography; using System.IO; using System.Text; using System.Net; public class PolonScript : MonoBehaviour { public TextMesh OutputText; const

How to print SHA512 hash in C [duplicate]

最后都变了- 提交于 2019-12-11 10:50:37
问题 This question already has answers here : Calculate and print SHA256 hash of a file using OpenSSL (2 answers) Closed last year . I have the following code to calculate the sha512 hash: #include <stdio.h> #include <string.h> #include <openssl/sha.h> int main() { char *password = "test"; char hash[SHA512_DIGEST_LENGTH]; SHA512(password, strlen(password), hash); return 0; } How to print out the calculated hash in hex? Thanks 回答1: Change hash to be unsigned char hash[SHA512_DIGEST_LENGTH] . Then:

Get the SHA-512 of any SQL query

百般思念 提交于 2019-12-11 06:55:17
问题 A common practice to compare two text file is to use the SHA-512 [or any other realted SHA algo]. If two SHA results are not the same then the files are not exactely the same. I would like to do the same with two SQL queries. I just want to know if the queries gives 100% identical result or not with a SHA-512 [or sha-256 would be OK as well]? Is that possible to perform that? I am using SQL Server... 回答1: Just to help... It's understood that both queries return the same columns in the same

SHA512 with salt for iOS

微笑、不失礼 提交于 2019-12-11 06:35:55
问题 Hi is there anyone with a working SHA512 iOS implementation? The code doesn't seem to generate the same one I have on php. <?php $code = hash("SHA512", '123' . '123' ); echo $code; ?> Output: 263fec58861449aacc1c328a4aff64aff4c62df4a2d50b3f207fa89b6e242c9aa778e7a8baeffef85b6ca6d2e7dc16ff0a760d59c13c238f6bcdc32f8ce9cc62 - (NSString *) sha512:(NSString *) input withSalt: (NSString *) salt { const char *cKey = [salt cStringUsingEncoding:NSUTF8StringEncoding]; const char *data = [input

Use of undefined constant CRYPT_SHA512

拟墨画扇 提交于 2019-12-11 03:48:59
问题 I use a php script that hashes passwords using php's crypt and uses SHA512, however when I try to check if SHA512 is set I get the above error. Of course I know WHY I get this error.. php is missing some dependency. I just don't know what that dependency is. Can anyone please tell me what I need to install (on a Ubuntu server) to be able to use SHA512 in PHP ? Thanks! 回答1: The php docs say that built-in support for SHA-256 and SHA-512 was added in PHP 5.3.2. If you use any earlier versions of

Compute SHA512 on VBA (Excel 2003)

柔情痞子 提交于 2019-12-10 17:37:09
问题 I'm trying to compute the hash of a string on VBA (Excel 2003), but when I call ComputeHash , it throws me an Invalid argument/procedure call error. DLL References: mscorlib v4.0, System v4.0 MSDN reference: http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha512managed.aspx Sub Main() Dim instance As New SHA512Managed Dim data() As Byte data = StringToByte("mymsg") Dim result() As Byte instance.ComputeHash(data) 'Throws runtime error' MsgBox (ByteToString(result)) End Sub

SHA512 not the same in CryptoJS and Closure

旧街凉风 提交于 2019-12-10 09:44:44
问题 I have some troubles with a simple crypto-challenge. I want to do following: getting a url-encoded and base64-encoded value do url-decoding do base64-decoding hash with Sha512 When working with CryptoJS, i use following code: var parameter = "Akuwnm2318kwioasdjlnmn"; var urlDecoded = decodeURIComponent(parameter); var base64Decoded = CryptoJS.enc.Base64.parse(urlDecoded); var hashed = CryptoJS.SHA512(base64Decoded).toString(CryptoJS.enc.Base64); //hashed = "UxupkI5+dkhUorQ+K3

PHP Openssl decrypt an AES Mysql Encryption

时光毁灭记忆、已成空白 提交于 2019-12-10 04:19:28
问题 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 aes_decrypt in the mysql query to decrypt the data. I want to also have the ability for php to do so itself. I've gotten this part working. If MySQL does the very basic AES_ENCRYPTION like so INSERT INTO tablename (dataset) VALUES (AES_ENCRYPT(

How to use WSSE in iOS with salted sha512 with more than 1 iteration

折月煮酒 提交于 2019-12-08 07:04:49
问题 I need some help with WSSE Header generations in iOS. The application it's written in Symfony2 which uses sha512 algorithm with 5000 iterations and encode_as_base64 as true. For the mobile app, I found this question for encoding the password: SHA512 with salt for iOS although it's only one iteration. Using a simple loop which includes the last one would suffice it? We found the code for the Android generation of the WSSE Headers: http://obtao.com/blog/2013/09/how-to-use-wsse-in-android-app/

How do a use a SecureString to create a SHA1 or SHA512 Hash?

坚强是说给别人听的谎言 提交于 2019-12-08 01:54:45
问题 I would like to use a SecureString varible within VB.NET and convert that to a SHA1 or SHA512 hash. How would I securely convert the SecureString to the Byte array that HashAlgorithm.ComputeHash will accept? 回答1: What about that, if we avoid the only used String instance (output) and replace it with a character array. This would enable us to wipe this array after use: public static String SecureStringToMD5( SecureString password ) { int passwordLength = password.Length; char[] passwordChars =