3 Replies - 459 Views - Last Post: 20 December 2013 - 05:58 AM Rate Topic: -----

#1 RGSoftware  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 09-December 13

Sendspace API - "tokened_password" method problems

Posted 19 December 2013 - 09:31 AM

I am trying to create a program using sendspace.com's API, but I don't understand their tokened password method.

I emailed them twice and I don't understand from their reply, so I thought I would ask here.

I know how to convert string to MD5 but, I don't know what they want exactly to be converted.

Method link:

www.sendspace.com/dev_method.html?method=auth.login

their email reply...

Our API technician replies:

1. calculate md5 on password
2. make sure md5 of password is in lowercase
3. concatenate token & password md5
4. calculate md5 on token+password md5 string
5. make sure md5 is

Example:
token = THISISTOKEN
password = 123456
password md5 = e10adc3949ba59abbe56e057f20f883e

md5(THISISTOKEN+md5(123456)) =>
md5(THISISTOKENe10adc3949ba59abbe56e057f20f883e) =>
ab80b4aa7391adf34b41c76160efbc2d

tokened_password = ab80b4aa7391adf34b41c76160efbc2d

I hope that explanation is useful.
--
Sam,
The Sendspace Team

Can someone explain a method statement of what they want for this "tokened_password"

Don't know what they mean by this part

md5(THISISTOKEN+md5(123456)) =>
md5(THISISTOKENe10adc3949ba59abbe56e057f20f883e) =>
ab80b4aa7391adf34b41c76160efbc2d


Thanks in advance.

Riccardo.

Is This A Good Question/Topic? 0
  • +

Replies To: Sendspace API - "tokened_password" method problems

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Sendspace API - "tokened_password" method problems

Posted 19 December 2013 - 10:36 AM

The way I read it is

First MD5 the password (ensuring it is all lower case)

Next Concatenate your Token and the MD5 Result of the password and pass that a concatenated value to your MD5 converter

So lets say your token is "RGSoftware" and your password is 321

MD5(321)
Results in a32d1fe04 for example

Dim AString as String = "RGSoftware" & "a32d1fe04"
AString = "RGSoftwarea32d1fe04"

MD5(AString)

a new MD5 hash is created

disclaimer: this is only what I get from what I read in your post and have never used the SendSpace API

This post has been edited by CharlieMay: 19 December 2013 - 10:37 AM

Was This Post Helpful? 0
  • +
  • -

#3 RGSoftware  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 09-December 13

Re: Sendspace API - "tokened_password" method problems

Posted 20 December 2013 - 02:08 AM

View PostCharlieMay, on 19 December 2013 - 10:36 AM, said:

The way I read it is

First MD5 the password (ensuring it is all lower case)

Next Concatenate your Token and the MD5 Result of the password and pass that a concatenated value to your MD5 converter

So lets say your token is "RGSoftware" and your password is 321

MD5(321)
Results in a32d1fe04 for example

Dim AString as String = "RGSoftware" & "a32d1fe04"
AString = "RGSoftwarea32d1fe04"

MD5(AString)

a new MD5 hash is created

disclaimer: this is only what I get from what I read in your post and have never used the SendSpace API


Yes, that seems so. After posting this I realised what they meant.

it was...

convert pass to md5
then combine (concatenate) that with the token and run it through md5 again.

Easy once you know.

Thanks for the help!
Was This Post Helpful? 0
  • +
  • -

#4 ybadragon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 177
  • View blog
  • Posts: 1,087
  • Joined: 11-May 12

Re: Sendspace API - "tokened_password" method problems

Posted 20 December 2013 - 05:58 AM

I'm pretty sure you could make this shorter by saying

Dim AString As String = MD5("RGSoftware" & MD5(password).ToLower)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1