Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does "^" do?

Status
Not open for further replies.

riches85

Programmer
Joined
Nov 13, 2002
Messages
59
Location
US
I have never even taken a serious look at php until today. I have been asked to take an encryption algorythm written in php and convert it to java. I have been able to understand most of it, but one assignment has confused me and I cant find any documentation explaining it. I am sure it is very simple. Here is the line

$k_ipad = $key ^ str_repeat(chr(0x36), 64);

I am having trouble looking up what the "^" does. It would look like a concatenation assignment if I didnt already know it was a "." not a "^". Any help would be greatly appreciated. Thanks
 
hi, i went through it ans still couldnt get it...

Known is handfull, Unknown is worldfull
 
XOR, the staple of any crypto system ;-)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top