guides:ws_store_checksum
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:ws_store_checksum [2018/10/26 19:14] – brett.zamora | guides:ws_store_checksum [2019/06/04 23:51] (current) – brett.zamora | ||
---|---|---|---|
Line 9: | Line 9: | ||
- | < | + | < |
< | < | ||
</ | </ | ||
Line 19: | Line 19: | ||
<color # | <color # | ||
- | {{tablelayout? | + | {{tablelayout? |
^ Method ^ URL ^ | ^ Method ^ URL ^ | ||
- | | POST | < | + | | POST | < |
Line 34: | Line 34: | ||
^ Key ^ Value ^ | ^ Key ^ Value ^ | ||
| Content-Type | application/ | | Content-Type | application/ | ||
+ | | access_token | {soft-token} | | ||
Line 58: | Line 59: | ||
**Endpoint: | **Endpoint: | ||
- | < | + | < |
Line 75: | Line 76: | ||
- | **Sample Response:** | + | <color #7092be>Sample Response</ |
Status Code: 200 | Status Code: 200 | ||
Line 116: | Line 117: | ||
- | <code C#> | + | {{page>[: |
- | // The following strBase64DocValue value is retrieved from the DOCUMENT child node of the EMBEDDED_FILE node in the XML document. | + | |
- | + | ||
- | string strBase64DocValue = " SUkqALLnAAAtVZDKI+R4jhk…"; | + | |
- | + | ||
- | string strBase64HashValue = getBase64Hash(strBase64DocValue); | + | |
- | + | ||
- | public static string getBase64Hash(string strB64Source) | + | |
- | { | + | |
- | Encoding u8 = Encoding.UTF8; | + | |
- | + | ||
- | byte[] b64Bytes = u8.GetBytes(strB64Source); | + | |
- | + | ||
- | byte[] b64HashBytes = SHA384.Create().ComputeHash(b64Bytes); | + | |
- | + | ||
- | //Convert the SHA384 hash to a Base64 string | + | |
- | + | ||
- | string strB64Value = System.Convert.ToBase64String(b64HashBytes, | + | |
- | + | ||
- | return strB64Value; | + | |
- | } | + | |
- | </ | + | |
Line 221: | Line 201: | ||
**Comment 4:** | **Comment 4:** | ||
- | CeRTNA has posted a simple Visual Studio 2015 WPF/C# project the CeRTNA Wiki that demonstrates how to look up values in an XML file and how to use the Login, StoreChecksum, | + | CeRTNA has posted a simple |
guides/ws_store_checksum.1540581271.txt.gz · Last modified: by brett.zamora