You've found the encryption algorithm from the Sandra bullock movie. The Net!