Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.02.2007, 04:19   #1
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default [HELP]Decrypting Binary things in SQL

Well i know that it was posted before, but i didn't find my answer.
I want to decrypt account passwords from sql, and show them in ASCII. As I alrdy read, you guys said that it's not posible. I'm thinking in another posibility, it is: reset all password and make 2 columns to save password, one of them will be the normal binary column and the other will be a normal column. But before that, I would like to know if you alrdy found a way to decrypt those binary things. Thanks in advance.
Guaresnay is offline  
Old 28.02.2007, 05:03   #2
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

u cant decrypt a password, the encryption is a 1-way encryption and cant be undone... as for the whole 2 columns for pw thing...
just add a new field to user_auth... password_plain, then edit ur registration script...
testdude is offline  
Old 28.02.2007, 05:49   #3
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

OK, thanks i just wanted to know if there was any function to do that. I know how to add the other column, but thanks anyway
Guaresnay is offline  
Old 28.02.2007, 06:13   #4
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

binary pass to hex string:

function Mbin2string($binstr)
{
$out = "0x";
for($q=0; $q < strlen($binstr); $q++) {
$w = dechex(ord($binstr[$q]));
if(strlen($w)==1) $w = '0'.$w;
$out .= $w;
}
$out = strtoupper($out);
$out[1] = 'x';
return $out;
}


Quote:
Originally Posted by testdude View Post
u cant decrypt a password, the encryption is a 1-way encryption and cant be undone...
So not true :-))
ateh is offline  
Old 28.02.2007, 09:42   #5
empathon
Архивный участник
 
Join Date: Feb 2006
Posts: 136
Default

I pretty sure that password there is saved as a hash ( cant check it atm ). Hash is not an encryption. But there are ways to guess value with will gave same hash.
Read about rainbow tables.
empathon is offline  
Old 28.02.2007, 14:26   #6
dirkr
Архивный участник
 
Join Date: Nov 2006
Posts: 204
Default

yeah..good luck on bruteforcing it tho
dirkr is offline  
Old 28.02.2007, 14:29   #7
empathon
Архивный участник
 
Join Date: Feb 2006
Posts: 136
Default

Rainbow tables is not brutalforcing... read first about it. It dont take so many time for md5 and other short hashes...
empathon is offline  
Old 28.02.2007, 14:35   #8
dirkr
Архивный участник
 
Join Date: Nov 2006
Posts: 204
Default

i know about rainbowtables tyvm , i also know about the project they have setup with just about every hash in it, and for a small fee you can do a query on the database.. but gl on doing that for all your password

on the other hand.. watch out with putting your passwords in there in plaint text aswell.. if somebody hacks your db you've just made it even easier to strip all the accounts.
dirkr is offline  
 


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


All times are GMT. The time now is 15:18.