Talk:Direct Delivery and Automatic Notification System

From Second Life Wiki
Jump to navigation Jump to search

Regarding the .NET example for the ANS verification, the use of FormsAuthentication.HashPasswordForStoringInConfigFile() is somewhat unorthodox but it's a single call and it works. For an alternative I offer the following:

string calcHash;
System.Security.Cryptography.SHA1Managed hashAlgorithm = new System.Security.Cryptography.SHA1Managed();
System.Text.ASCIIEncoding encoder = new System.Text.ASCIIEncoding();
byte[] bytes = encoder.GetBytes(Request.Url.Query.Remove(0,1) + saltCode);
bytes = hashAlgorithm.ComputeHash(bytes);
calcHash = BitConverter.ToString(bytes).Replace("-","").ToLowerInvariant();

Antonius Frentis 18:10, 23 September 2012 (PDT)


I see XStreet plastered all over this so I was wondering if this wiki is updated to all (if any) of the latest ANS features and specifications?

Also I suggest that this page be linked to from the ANS page on the marketplace instead of it just saying "For more information on ANS, please see the Knowledge Base.". Mainly because the knowledge base doesn't contain any ANS information but the wiki does ;-) Marc Adored 08:32, 19 January 2013 (PST)

Return values?

What returns values from scripts does SLM support? The SLX ANS system could return 'success' or 'failure', is that still what the SLM version expects? Also, I'm not clear on what "Orders on the SL Marketplace may contain up to 10 separate items, each detailed on a separate line" means. The article could really do with a properly coded PHP example showing off how to process an example request, ideally with script security best practices (use of mysqli_real_escape_string etc.).
-- Haravikk (talk|contribs) 08:38, 18 March 2013 (PDT)