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

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -