![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
![]() i can encode this into a blob on my table
but how the fuck do i decode it? $string = "insert into user (username, passwd, email, verify,prefs)values ('$username', ENCODE('$password', 'ba'), '$email','$code','$prefs')"; $result = mysql_query($string); |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
why would you put that into a blob?
__________________
![]() Bad Girl Bucks - 50% Revshare through CCBill. Promote BrandyDDD, Pixie's Pillows, Action Allie and more! Phoenix Forum Pics | Webmaster Access Montreal pics email: psyko514(a)gmail.com | icq: 214-702-014 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
the MySQL encode() function returns a binary string, which needs to be stored in a BLOB column type
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
why use encode()? why not md5() or mcrypt()?
anyways, you have to use the decode() function, but it needs the result of encode() DECODE (encrypted_password, pass_string)
__________________
![]() Bad Girl Bucks - 50% Revshare through CCBill. Promote BrandyDDD, Pixie's Pillows, Action Allie and more! Phoenix Forum Pics | Webmaster Access Montreal pics email: psyko514(a)gmail.com | icq: 214-702-014 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
because i wanted to echo their current password and give them the option to change it, but i guess i will just give them the option to change it without displaying their current password
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Posts: 7,817
|
Use md5
![]() Cheers, Matt |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
Quote:
just like the password() function goes in but cant come out |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
I don't see why you'd show them their password and then offer to change it, unless the password is randomly generated?
__________________
![]() Bad Girl Bucks - 50% Revshare through CCBill. Promote BrandyDDD, Pixie's Pillows, Action Allie and more! Phoenix Forum Pics | Webmaster Access Montreal pics email: psyko514(a)gmail.com | icq: 214-702-014 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
well here is the deal
im writing the script so when they signup they choose their own password, but if they lose their password it generates one randomly. So Then I wanted to Display the generated password and let them change it to something else .. but i will just let them change it , by typing in a new password , then updating the table .. just like it did when they signed up |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Nov 2001
Location: MTL
Posts: 5,060
|
Yeah md5 is one-way encoding...why not use crypt() ?
__________________
mmm my sig was too big... no more cool animation ![]() but hey still! need php? ICQ: 94586959 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
why use encoding if its gonna be decodable? it doesnt really provide security then.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
Quote:
thats the common way of doing it ...or during the reset process, you can have them choose what pass to reset it to..
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |