Bitcoin Forum
April 18, 2024, 12:29:44 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Klasik ASP ile HMAC-SHA256  (Read 176 times)
Peno2 (OP)
Member
**
Offline Offline

Activity: 263
Merit: 11

Para Basan Adam


View Profile WWW
April 20, 2019, 10:11:36 AM
 #1

Merhaba,
Btcturk apisinden veri cekmek icin klasik ASP ile HMAC-SHA256 imzalama ornegi paylasabilecek kimse var mi ?

PHP vb bir cok dilde ornek mevcut ama asp olarak bulamadim.

"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713443384
Hero Member
*
Offline Offline

Posts: 1713443384

View Profile Personal Message (Offline)

Ignore
1713443384
Reply with quote  #2

1713443384
Report to moderator
mrtersiyer
Newbie
*
Offline Offline

Activity: 17
Merit: 36


View Profile
April 21, 2019, 09:11:25 PM
Merited by mhanbostanci (1), ekiller (1)
 #2

Merhaba,
Btcturk apisinden veri cekmek icin klasik ASP ile HMAC-SHA256 imzalama ornegi paylasabilecek kimse var mi ?

PHP vb bir cok dilde ornek mevcut ama asp olarak bulamadim.


string message = yourAPIKey + unixTimeStamp;
using (HMACSHA256 hmac = new HMACSHA256(Convert.FromBase64String(yourPrivateKey)))
{
   byte[] signatureBytes = hmac.ComputeHash(Encoding.UTF8.GetBytes(message));
   string X-Signature = Convert.ToBase64String(signatureBytes));
}


client.DefaultRequestHeaders.Add("X-PCK", yourAPIKey);
client.DefaultRequestHeaders.Add("X-Stamp", stamp.ToString());
client.DefaultRequestHeaders.Add("X-Signature", signature);

Edit:
Klasik ASP için link;
https://www.example-code.com/asp/hmac-sha256.asp
Peno2 (OP)
Member
**
Offline Offline

Activity: 263
Merit: 11

Para Basan Adam


View Profile WWW
May 09, 2019, 06:30:27 PM
 #3

Büyüksün, ilk fırsatta inceleyeceğim

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!