md5 login, how do i do it?
#1
hi guys currently having a look at creating a plugin, once the login is mastered the rest is a peice of cake..

this is for flashsportstreams.com

the only snag is md5.

any information on converting md5 passwords?

ps.

the format is to send out is;

username, md5password, md5password_utf, 0

pss.

md5password_utf seems to be the same as md5password, although sent through under a different name, probably just a simple security feature not sure as of yet!
Reply
#2
You just want to convert a password to md5?

Code:
import md5

password = 'drowssap'
passhash = md5.new(password).hexdigest()
print passhash
Reply
#3
hey, don't know if its of any use (sounds like your way past it), but i wrote a guide for logins

as for the md5, maruchans suggestion is good
Reply
#4
we got:

if fss_addon.getSetting("username") != '' and fss_addon.getSetting("password") != '':

loginurl='http://www.flashsportstreams.com/login.php?do=login'
memberurl='http://www.flashsportstreams.com/forum/view.php?pg=home'

username=fss_addon.getSetting("username")
password=fss_addon.getSetting("password")
passhash = md5.new(password).hexdigest()

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
login_data = urllib.urlencode({'vb_login_md5password' : passhash, 'vb_login_md5password_utf' : passhash, 'vb_login_username' : username})
opener.open(loginurl, login_data)

with import md5 near the top..

should this be right
Reply
#5
thanks guys, abit of tweaking and it works perfectly first time everytime!
Reply
#6
Just a note. If all you need to pass along is the md5 then just store that. No point storing the real password in clear text. Tbh we shouldn't allow plugins which store in clear text Smile

Read up how passwords are stored in Linux for an example. Its security 101 essentials.

Cheers.
Tobias
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply

Logout Mark Read Team Forum Stats Members Help
md5 login, how do i do it?0