Page 1 of 1
16 Bit Encryption
Posted: Wed Mar 24, 2004 12:10 am
by zaibe
Hello!
If any one knows any website or have any class or function which can encrypt string upto 16 bit (characters)...?
Thanx In Advance
zohaib.
Posted: Wed Mar 24, 2004 12:21 am
by Slippy
The md5() function using "Raw_output" should produce a raw binary (16 bit) string.
Something like
See
http://www.php.net/manual/en/function.md5.php
Posted: Wed Mar 24, 2004 12:32 am
by zaibe
i got this error when i use this function like you said
PHP Warning: Wrong parameter count for md5()
And also its wriiten on the site you told tht
The optional raw_output parameter was added in PHP 5.0.0 and defaults to FALSE
Posted: Wed Mar 24, 2004 1:02 am
by Slippy
So, if you are not using php5, the md5 function still works -- just drop the raw_output part,
Of course, in that form it returns 32 bit HEX... is there an intended purpose behind the 16 bit requirement?
Posted: Wed Mar 24, 2004 1:33 am
by zaibe
well,

offcourse there is some purpose thts why i'm asking abt 16bit encryption....
If this is not any way for me then if you know any function in Javascript which can give me the required result?...
Like md5 in php and javascript produces same result co'z both are using same algo...
so is there is any possibilty like tht?
Re: 16 Bit Encryption
Posted: Wed Mar 24, 2004 8:56 am
by Roja
zaibe wrote:Hello!
If any one knows any website or have any class or function which can encrypt string upto 16 bit (characters)...?
Thanx In Advance
zohaib.
Contrary to other comments, md5 is not encryption at all - its hashing/fingerprinting. See my tutorial on md5
here.
You'll need to be much more specific about what you want to accomplish. Does the string have a maximum length?
Do you need the output to be able to be un-encrypted?
Do you need the output to be 16 characters, or just 16 bytes, and why?
All of those will help pick between dozens of different encryption methods including mcrypt.
There is definitely a solution, but you need to be more clear about stating the problem to get your answer.