Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-30-2012, 09:18 AM   PM User | #1
trileletri
New to the CF scene

 
Join Date: Aug 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
trileletri is an unknown quantity at this point
what kind of code encryption / compression is this?

Hello,
yesterday in my office i found these strings in sql lite database, which I know exist in our application, they are coded description of civil engineering work activities

SQB6AHIAYQBkAGEAIABuAGEAZABzAHQAcgBlAGEBbgBpAGMAZQA=
i know that string above is coded string:
Izrada nadstrešnice
which is "making of rain protection roof" in english

SQB6AHIAYQBkAGEAIABhAHIAbQBpAHIAYQANAWsAbwBnACAAcwB0AG8AbABhAA==
this is coded string:
Izrada armiračkog stola
which is "making of armature table" in english

I have whole database full of these encoded strings running at my local server.

I was wondering, is there a way to found out what kind of encryption / compression method was used to store this text string into database?
trileletri is offline   Reply With Quote
Old 08-30-2012, 05:01 PM   PM User | #2
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 597
Thanks: 15
Thanked 67 Times in 67 Posts
Arcticwarrio is on a distinguished road
how were they entered into the database?
__________________
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Arcticwarrio is offline   Reply With Quote
Old 08-30-2012, 06:22 PM   PM User | #3
trileletri
New to the CF scene

 
Join Date: Aug 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
trileletri is an unknown quantity at this point
There is a desktop application with file I opened and saw sqlite schema. So I imported it into our web server and there they show up in a table. There is about 20,000 of these entries. And there is a md5_and_reverse() function which shows up in swlitemanager on server when I open this db, but I can not figure out is it md5 or something else.
trileletri is offline   Reply With Quote
Old 08-30-2012, 07:21 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Its not a compression or encryption at all.
That's simply base64 encoded (which is faaaarrrrr from compression for sure). I'm not sure what you're talking about for an md5 reversal, that's a hashing method, so it cannot be reversed. It can be easily brute forced though which is why md5 is not recommended.

I would presume this was done as it is likely using a latin charset.
Fou-Lu is offline   Reply With Quote
Old 08-31-2012, 07:25 AM   PM User | #5
trileletri
New to the CF scene

 
Join Date: Aug 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
trileletri is an unknown quantity at this point
I guess "š đ ž ć č" are latin charset.

Thank you for the extensive info! I understood it all.
trileletri is offline   Reply With Quote
Old 08-31-2012, 06:56 PM   PM User | #6
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
None of those characters is in the latin charset. What I mean is I would presume the reason for the base64 is since the database is stored in a latin charset, so it cannot properly store those characters. It can be changed from a latin charset to a unicode one which should be able to store those characters.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Tags
encryption

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 02:09 PM.


Advertisement
Log in to turn off these ads.