Old 4th July 2011, 12:21   #1
gcsaba2
Junior Member
 
Join Date: Jun 2011
Posts: 8
How to encrypt the user password from the plugin?

My plugin is scrobbling tracks from radio stations and sending the data to last.fm. For this, I need the user to type in his username and password. What is the Winamp-preferred method for storing the user data?
gcsaba2 is offline   Reply With Quote
Old 4th July 2011, 12:26   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
in summary, its up to you where you save it.

however generally most plug-ins use an ini file with the settings usually stored in winamp.ini (as found from IPC_GETINIFILE(W) ) or in a separate file using IPC_GETINIDIRECTORY(W) as the settings folder path to base things on i.e. using that to then make %winampinidir%\plugins\myinifile.ini.

or anything else you want to do - just ensure you make sure it's multi-user compatible (as all Winamp versions since 5.11+ have allowed for).

-daz
DrO is offline   Reply With Quote
Old 4th July 2011, 12:55   #3
gcsaba2
Junior Member
 
Join Date: Jun 2011
Posts: 8
What do you mean multi-user compatible? I've checked my currently installed plugins (I have 5.6+) and they all have a single username and password field.

I think I'll do it based on the gen_classicart.cpp example:
code:
INI_FILE = (char*)SendMessage(plugin.hwndParent,WM_WA_IPC,0,IPC_GETINIFILE);
gcsaba2 is offline   Reply With Quote
Old 4th July 2011, 13:07   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
what i mean with multi-user compatible is not trying to save settings always into the Winamp program files folder (unless set to do so by the user) or storing any settings as accessible for all users of the machine (when not appropriate) rather than just for the user it relates to.

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
encrypt, password, security

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump