this is my PHP code:
hash_hmac( 'sha256', utf8_encode( $filename ), utf8_encode( $password ) );
and this is my C# code:
var hmacsha256 = new HMACSHA256( Encoding.UTF8.GetBytes( password ) ); hmacsha256.ComputeHash( Encoding.UTF8.GetBytes( filename ) );
unfortunately both results differ. Can anyone give me a hint?
My C# is not the best but i got it to work, what you need to do is to convert your byte array results to hex.
PHP
C#