Need Help and Idea Too!!

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

17 replies · 652 views · started 16 years ago · 1 min read

3 participants
khan Lead · 681 posts #1

As I am now working on my new project for a company, I need some Help from you. That is db saved data of user registration like nick=nick and pcode=pcode;

and it used like http://csite.com/buyproduct.php?nick=$nick&pcode=$pcode

But I dont want to show the nick and password of that user on browser. Can i encrypt nick=$nick&pcode=$pcode? How can I do that! Just like this http://csite.com/buyproduct.php?nick=sfwhhfjuycamafn&pcode=f2rs5fsdfwvyrwjfksf??

md5 can't coz i wont get value of it to verify from db. Any Other? I can make the db again with encrypted password. But the site hav more than 5000 members. Or Do you have any other Idea to hide that value?

subzero Super moderator Fellow · 3,954 posts #2

Use php session

like

if(isset($_SESSION['user'])) { Hey you subzero!! }else{ do i know you sir ?? }

to set this use

$_SESSION['id']=session_id(); $_SESSION['user']=$user;

Hope that helps you

so your site link will look like this

http://csite.com/buyproduct.php

and not like this http://csite.com/buyproduct.php?sid=hwejfghsdjfhjsdhfjsdhfjsdfh_hack_me_code_so_easy_please_shfjdshfjdshfjdshfjdshf

lol its too hard to crack session site thats why i say no one has your id on my site

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #3

its better if you md5 them and save them in the database as md5 as otherwize your leaving yourself open for attacks

subzero Super moderator Fellow · 3,954 posts #4

md5 can be cracked bro lol

hash private key is the best way to go

doing private key means hash cracker can't undo your hash password unless cracker has your private key to uncrack your hash code.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #5

yeah private key is better ..... but as khan was saying ... he is leaving password on full view with no encryption so any encyption is better than none.

subzero Super moderator Fellow · 3,954 posts #6

that i agreed with you bro

i use referrer on scotspaul gotten his password easy lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #7

i used sql injection on his lol whilst in owner cp i had noticed dj lee had put a javascript file in his profile <script> link to another site </script> lol

khan Lead · 681 posts #8

I cant Encrypt the password on db as because They already have more than 5000 user having their password without encryption. There Is the Point. This cops me to do use encrypted password.

subzero Super moderator Fellow · 3,954 posts #9

lol yeah nasty guy dj lee lol

Thats why i asked you to use sessions to hide your user/pass

all it needs is user

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

something else Fellow · 2,296 posts #10

i only hacked in there as i seen dj lee was registered there and i wanted to change some of his details lol

khan create another field in your database and then use a simple whilst statement to encypt all passwords and put them back into database

khan Lead · 681 posts #11

something else wrote: i only hacked in there as i seen dj lee was registered there and i wanted to change some of his details lol

khan create another field in your database and then use a simple whilst statement to encypt all passwords and put them back into database

How ?? Or I think it can be hide by Mod rewrite! Can It?

something else Fellow · 2,296 posts #12

use something simular to this:

while ($sql = mysql_fetch_array(mysql_query("SELECT id, pass FROM members))){
$done = mysql_query("UPDATE members SET newpass='".md5($sql[1])."' WHERE id='".$sql[0]."'");
print $sql[0];
if($done) print ') done<br/>';
else print ') oops<br/>';
}

but with a better encryption method 🙂

something else Fellow · 2,296 posts #14

You may need to Limit the calls from database eg: LIMIT 1, 1000 as im not sure how the server would handle 10000 cals to database all at once lol ...your script may time out 🙂

Added after 12 minutes:

just personalize your own way of encrypting eg: $pass = crypt(md5("khan".$pass."khan"));

something else Fellow · 2,296 posts #16

use SESSION or COOKIE to hide them 🙂

mod rewrite in incapable of keeping a variable hidden and usable such as a password

subzero Super moderator Fellow · 3,954 posts #17

Go back and watch for my topic look at it and come back and tell me where did you miss where i told you how ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

khan Lead · 681 posts #18

I use something similar like session On other's site. Now I want to change This shema.leave it And can you please to tell me how to take ssl for that site?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close