Click here to Skip to main content
15,893,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Trying to understand the nature of inherited windows forms.... Pin
bojammis7-Jan-15 15:15
professionalbojammis7-Jan-15 15:15 
GeneralRe: Trying to understand the nature of inherited windows forms.... Pin
Sam Marrocco8-Jan-15 2:54
Sam Marrocco8-Jan-15 2:54 
GeneralRe: Trying to understand the nature of inherited windows forms.... Pin
bojammis8-Jan-15 5:47
professionalbojammis8-Jan-15 5:47 
QuestionOutlook...vba to assign a UDF a value (attachment.filenames) Pin
Member 113499046-Jan-15 16:00
Member 113499046-Jan-15 16:00 
QuestionNew computer language creation using visual basic Pin
Member 113553585-Jan-15 22:50
Member 113553585-Jan-15 22:50 
QuestionHMAC Calculating for Request Header Pin
jkirkerx4-Jan-15 10:18
professionaljkirkerx4-Jan-15 10:18 
GeneralLost in translation? Pin
jkirkerx5-Jan-15 10:57
professionaljkirkerx5-Jan-15 10:57 
Answer[SOLVED] Pin
jkirkerx5-Jan-15 12:34
professionaljkirkerx5-Jan-15 12:34 
Well I just got a lesson in hash data, or more like the use of \n in c-sharp
That doesn't work in vb, you have to use vblf instead. So the HMAC never computed correctly.
And how stupid of me not to run both sets of code side by side, and check every value to see if they match.

First Translation
'Build and assign values to hashing and header variables
Dim m_method As String = "POST"
Dim m_type As String = "application/xml"
Dim m_time As String = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ")
Dim m_hashData As String = m_method & "\n" & m_type & "\n" & hashed_content & "\n" & m_time & "\n" + m_transmit_Uri


Modified:
'Build and assign values to hashing and header variables
Dim m_method As String = "POST"
Dim m_type As String = "application/xml"
Dim m_time As String = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ")
Dim m_hashData As String = m_method & vbLf & m_type & vbLf & hashed_content & vbLf & m_time & vbLf & m_transmit_Uri

GeneralRe: [SOLVED] Pin
Member 149534685-Aug-21 5:50
Member 149534685-Aug-21 5:50 
GeneralRe: [SOLVED] Pin
jkirkerx5-Aug-21 6:22
professionaljkirkerx5-Aug-21 6:22 
QuestionHow to make a youtube downloader in vb.net Pin
Anupama Rhiyas1-Jan-15 21:41
Anupama Rhiyas1-Jan-15 21:41 
AnswerRe: How to make a youtube downloader in vb.net Pin
Richard MacCutchan1-Jan-15 22:30
mveRichard MacCutchan1-Jan-15 22:30 
AnswerRe: How to make a youtube downloader in vb.net Pin
Simon_Whale1-Jan-15 22:46
Simon_Whale1-Jan-15 22:46 
QuestionVB 2013 Community (Transparent Text Control) Pin
peskykid821-Jan-15 15:17
professionalpeskykid821-Jan-15 15:17 
GeneralRe: VB 2013 Community (Transparent Text Control) Pin
PIEBALDconsult1-Jan-15 15:48
mvePIEBALDconsult1-Jan-15 15:48 
AnswerRe: VB 2013 Community (Transparent Text Control) Pin
Eddy Vluggen5-Jan-15 7:17
professionalEddy Vluggen5-Jan-15 7:17 
Questionann Pin
Member 1134553331-Dec-14 8:32
Member 1134553331-Dec-14 8:32 
AnswerRe: ann Pin
Dave Kreskowiak31-Dec-14 15:46
mveDave Kreskowiak31-Dec-14 15:46 
Questionhow to extract a sample from template dpfp visual basic .net 4.0 Pin
Member 1118030631-Dec-14 5:32
Member 1118030631-Dec-14 5:32 
AnswerRe: how to extract a sample from template dpfp visual basic .net 4.0 Pin
Eddy Vluggen5-Jan-15 7:20
professionalEddy Vluggen5-Jan-15 7:20 
Questionfilter records from ms access 2010 by vba Pin
Virendra Singh Bhanu30-Dec-14 16:40
Virendra Singh Bhanu30-Dec-14 16:40 
AnswerRe: filter records from ms access 2010 by vba Pin
Eddy Vluggen5-Jan-15 7:23
professionalEddy Vluggen5-Jan-15 7:23 
QuestionUsing a wsdl with HMAC Pin
jkirkerx30-Dec-14 12:53
professionaljkirkerx30-Dec-14 12:53 
QuestionNon-Web Async and Await Questions Pin
Member 1134379530-Dec-14 6:07
Member 1134379530-Dec-14 6:07 
AnswerRe: Non-Web Async and Await Questions Pin
Member 111128632-Jan-15 12:07
Member 111128632-Jan-15 12:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.