Bitcoin Forum
May 01, 2024, 07:21:49 PM *
News: Latest Bitcoin Core release: 27.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 grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714591309
Hero Member
*
Offline Offline

Posts: 1714591309

View Profile Personal Message (Offline)

Ignore
1714591309
Reply with quote  #2

1714591309
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!