developer:soap-1.2:objects:uesecuritytoken

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:soap-1.2:objects:uesecuritytoken [2010/02/12 10:36]
hmcgowan created
developer:soap-1.2:objects:uesecuritytoken [2010/09/17 16:17] (current)
irina
Line 188: Line 188:
 </​code>​ </​code>​
  
 +==== .NET C# ====
 +<code c>
 +usaepay.ueSecurityToken token = new usaepay.ueSecurityToken();​
 +
 +            token.SourceKey = "​O********************************8"; ​
 +
 +            ​
 +            string pin = "​1234";​
 +
 +            token.ClientIP = "​11.22.33.44";  ​
 +
 +            usaepay.ueHash hash = new usaepay.ueHash();​
 +            hash.Type = "​md5"; ​ // Type of encryption ​
 +            hash.Seed = Guid.NewGuid().ToString(); ​ // unique encryption seed
 +
 +            string prehashvalue = string.Concat(token.SourceKey,​ hash.Seed, pin);
 +            hash.HashValue = GenerateHash(prehashvalue);​
 +
 +            token.PinHash = hash;
 +
 +            return token;
 +</​code>​
  
  
developer/soap-1.2/objects/uesecuritytoken.txt ยท Last modified: 2010/09/17 16:17 by irina

Page Tools