Encryption

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Encryption

Post by shiznatix »

This is not for anything malicious or whatnot so dont worry. I need to know what PHP function encrypts strings and the encrypted string looks like this

NUn//jXHAfq9I
NUjZlYOugvTeQ
NUbD0MQNgQo76
NUwips2cdSFUw

They all perdy much look like that. Also, is there a way to un-encrypt it as I would imagine there be.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Encryption

Post by John Cartwright »

shiznatix wrote:This is not for anything malicious or whatnot so dont worry.
When some one sais that it usually causes my bells and whisles to go off :)

Not sure what it is though..
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

looks kinda like base64..
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Re: Encryption

Post by shiznatix »

Jcart wrote:
shiznatix wrote:This is not for anything malicious or whatnot so dont worry.
When some one sais that it usually causes my bells and whisles to go off :)

Not sure what it is though..
haha no. i got this little contract job but i have to change my permissions but the permissions are encrypted in the db so its hard to see what the site would be like for different users.

its not base64 but dont worry about it anymore, i just copy the encryption from another user then update my user.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

are these permissions associated with an operating system? Looks like it is a simple encryption technique inferred from its few number of characters for a string.

EDIT: can you provide the sample set of input strings to be encrypted in this permission case.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Try stripping the leading NUs too...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Are the being put into a mysql database? It could be something like mysql's AES_ENCRYPT which requires a private key (and the only way of finding it would be looking at the scripts)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

feyd wrote:looks kinda like base64..
I agree.... but there are usally " = " characters on the end of base64 encoded strings... though not always.
Post Reply