Page 1 of 1

Encryption

Posted: Sun Jan 29, 2006 3:55 am
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.

Re: Encryption

Posted: Sun Jan 29, 2006 8:35 am
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..

Posted: Sun Jan 29, 2006 8:56 am
by feyd
looks kinda like base64..

Re: Encryption

Posted: Sun Jan 29, 2006 9:57 am
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.

Posted: Sun Jan 29, 2006 11:24 am
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.

Posted: Sun Jan 29, 2006 12:00 pm
by Ambush Commander
Try stripping the leading NUs too...

Posted: Sun Jan 29, 2006 5:11 pm
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)

Posted: Mon Jan 30, 2006 10:21 am
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.