开发者

Amazon EC2 Instance IDs - Why XOR?

开发者 https://www.devze.com 2023-01-24 17:14 出处:网络
According to Guy Rosen and RightScale the Amazon EC2 instance IDs contain two XORs against the first and second half of the \"Inner ID\" and all three against their own cons开发者_高级运维tant.

According to Guy Rosen and RightScale the Amazon EC2 instance IDs contain two XORs against the first and second half of the "Inner ID" and all three against their own cons开发者_高级运维tant.

I understand that we won't know exactly why Amazon does this. However, from a general perspective, has anyone implemented or seen this sort of XOR and why would this XOR be implemented?

Is the only purpose to help obfuscate the ID?


Obfuscation via a straightforward binary operator seems a little silly considering how little it apparently worked to prevent people from figuring it out. I would assume that Mr. Rosen stumbled across one possible use for it, the only other I can think of is some form of resource tracking.

Of course, until someone from Amazon tells us this will all be pure idle speculation.

0

精彩评论

暂无评论...
验证码 换一张
取 消