Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPS VFPEncryption fll
Message
De
29/05/2010 16:07:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/05/2010 10:37:19
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01466450
Message ID:
01466526
Vues:
48
>Your example of what it should be looks like base64. Try using strconv("",13)

Not quite likely - the hex string he's supposed to get returns "ƒ]ĘQ“öu 9/s¦«†8‚žZ¸™€Ç)ÚSŤěˆĹ" when decoded from hex; a proper base64 would look more like "Zl1FXg5Rk/Z1IDkvc6arEYY4gp5auJmAxynaBVM/aWBeQSo=" - i.e. with all 64 printable characters, not just the 16 hex digits. IOW, I think he's really getting a completely wrong value, not the correct value in wrong format.

>>I'm using Craig Boyd's FLL to create a SHA-256 hash code. After I call it with HASH(m.lcHashme, 2) , it returns:
>>
>>"ƒ]ÊQ“öu 9/s¦«†8‚žZ¸™€Ç)ÚSìˆÅ"
>>
>>If I then encode it to hexBinary using STRCONV("ƒ]ÊQ“öu 9/s¦«†8‚žZ¸™€Ç)ÚSìˆÅ", 15) I get:
>>
>>"835DCA0E5193F675A0392F73A6AB118638829E5AB89980C729DA05538DEC88C5"
>>
>>The issue that I'm having is that I'm supposed to get "52e7e37b8c5f6cde8505a9d4a6324ca486d5aa13dde18cb7fa58690978343f72" because the web service that I'm going to call generates the latter. If it helps, I've been told that the web service generated the value from the hash code in bytes: 82 -25 -29 123 -116 95 108 -34 -123 5 -87 -44 -90 50 76 -92 -122 -43 -86 19 -35 -31 -116 -73 -6 88 105 9 120 52 63 114
>>
>>I'll be the first to admit that I'm clueless about this stuff and any assistance would be greatly appreciated.
>>
>>TIA,
>>Mike

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform