Hi there,
I am currently working on creating a plugin which integrates Facebook Connect with GCommunity. Everything is set up and the plugin works great. From registration, through linking an existing account to automatically loggin in the user with FB Connect.
In this process I use a table which contains the user's Facebook ID, GCommunity Username and Unencrypted password. Yip, Unencrypted. Thing is, I need the unencrypted password to automatically log the user into GCommunity. But keeping unencrypted passwords in the database is a big no-no.
Is there a way for me to encrypt those passwords, and then, when needed, decrypt them to log the user in?
Regards,
EZFrag
Sacrifice is not about what you lose,
it is about what you gain in the process.
I am currently working on creating a plugin which integrates Facebook Connect with GCommunity. Everything is set up and the plugin works great. From registration, through linking an existing account to automatically loggin in the user with FB Connect.
In this process I use a table which contains the user's Facebook ID, GCommunity Username and Unencrypted password. Yip, Unencrypted. Thing is, I need the unencrypted password to automatically log the user into GCommunity. But keeping unencrypted passwords in the database is a big no-no.
Is there a way for me to encrypt those passwords, and then, when needed, decrypt them to log the user in?
Regards,
EZFrag
Sacrifice is not about what you lose,
it is about what you gain in the process.