Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~653 People Reached
Favorite Forums
Favorite Tags
php x 2
Member Avatar for fsjal

Can someone tell me why these two yield totally different results ? [code=php] $key = 'abcdefgh'; echo encrypt('hello'); function encrypt($text) { $text = pkcs5_pad($text, mcrypt_get_block_size('rijndael-128', 'ecb')); return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $text, MCRYPT_MODE_ECB))); } [/code] VS. [code=php] echo encrypt('hello'); function encrypt($text) { $text = pkcs5_pad($text, mcrypt_get_block_size('rijndael-128', 'ecb')); return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, 'abcdefgh', $text, MCRYPT_MODE_ECB))); …

Member Avatar for fsjal
0
653