php - Flex 4.0 HMAC.hash binary data -


i have following php code, need working in flex 4.0:

$mac = base64_encode(hash_hmac('sha256', $message, $secret, true)); 

if last element true hash_hmac outputted raw binary data, if false outputs lowercase hexits.

i have following code written in flex:

encryptedstring = hmac.hash(tempstring,message,algorithm);  

however, outputs lowercase hexit. can not find out how convert flex output binary data match php.

does know?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -