Re: base64 encode question

From: Date: Thu, 03 Apr 2008 08:05:50 +0000
Subject: Re: base64 encode question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272475@lists.php.net to get a copy of this message
Sn!per wrote:
encoded value is: YToyOntzOjQ6InRpbWUiO2k6MTIwNzIwODk4MjtzOjQ6Imhvc3QiO3M6MTQ6IjE5Mi4xNjguMTAuMTAwIjt9 encoded value is: YToyOntzOjQ6InRpbWUiO2k6MTIwNzIwODk4NDtzOjQ6Imhvc3QiO3M6MTQ6IjE5Mi4xNjguMTAuMTAwIjt9 encoded value is: YToyOntzOjQ6InRpbWUiO2k6MTIwNzIwODk4NTtzOjQ6Imhvc3QiO3M6MTQ6IjE5Mi4xNjguMTAuMTAwIjt9
Hi, They are not the same! If you look closely enough, only one digit in the value is different. So the base64 encoded value has to differ only some values, not the whole string. 4MjtzO is different than 4NDtzO is different than 4NTtzO You see? So, the whole string is different and thus unique. Hope this helps! -- Aschwin Wesselius /'What you would like to be done to you, do that to the other....'/

« previous php.general (#272475) next »