I have a circumstance that requires me to use an alternative authentication scenario. The authentication to our school's web site/ services is handled by the the hosting service. (There is some sort of syncing that occurs with our local Active Directory database.)
I'm installing some Django apps on the school's local webserver which needs to authenticate against the remote database. The hosting service sent me this decrypt function in ASP. Function DeCrypt(strEncrypted, strKey) Dim strChar, iKeyChar, iStringChar For i = 1 To Len(strEncrypted) iKeyChar = (Asc(Mid(strKey, i, 1))) iStringChar = Asc(Mid(strEncrypted, i, 1)) iDeCryptChar = iKeyChar Xor iStringChar strDecrypted = strDecrypted & Chr(iDeCryptChar) Next DeCrypt = strDecrypted End Function UserName = Decrypt(request.Cookies("sample")("u"), "Encrypt Key") I'm assuming this Xor decrypt function can be rewritten in Python but I could use some help getting started on how to put this all together. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---