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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -