日期:2014-05-17 浏览次数:20849 次
<script type="text/javascript">
var e="abcd",
n=5555;
for(var r=0,i=e.length;r<i;++r)
{
n+=(n<<5)+e.charAt(r).charCodeAt();
}
document.write(n&1234)
</script>
static int Fuck(string code)
{
if (string.IsNullOrEmpty(code)) return 0;
int n = 5555;
byte[] buffer = Encoding.ASCII.GetBytes(code.ToCharArray());
for (int r = 0; r < code.Length; r++)
{
n += (n << 5) + buffer[r];
}
return n & 1234;
}