Bitcoin Forum
May 01, 2024, 11:08:08 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.

1714604888
Hero Member
*
Offline Offline

Posts: 1714604888

View Profile Personal Message (Offline)

Ignore
1714604888
Reply with quote  #2

1714604888
Report to moderator
1714604888
Hero Member
*
Offline Offline

Posts: 1714604888

View Profile Personal Message (Offline)

Ignore
1714604888
Reply with quote  #2

1714604888
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714604888
Hero Member
*
Offline Offline

Posts: 1714604888

View Profile Personal Message (Offline)

Ignore
1714604888
Reply with quote  #2

1714604888
Report to moderator
1714604888
Hero Member
*
Offline Offline

Posts: 1714604888

View Profile Personal Message (Offline)

Ignore
1714604888
Reply with quote  #2

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