Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Difference in MD5 hash generated by the terminal and with API GetHashN of IHash interface
Hi,
I am genarating a MD5 Hash for a certain text input and found that the hash generated was not similar to that of the terminal command.
So i tried a sample code to generate a hash for sample string “test”
I am using the following command on terminal of the device
echo “test” | md5sum
the hash generated is d8e8fca2dc0f896fd7cb4cb0031ba249
In my application the code is as below
String inputStr(L”test”);
IHash* pHash = new Md5Hash();
Tizen::Text::Utf8Encoding utf8Enc;
ByteBuffer* pInput = utf8Enc.GetBytesN(inputStr);
pOutput = pHash->GetHashN(*pInput);
this generates a hash e2a3e68d23ce348b8f68b379de3d4c9
Please let me know the procedure to obtain the same MD5 hast for the input both in code and terminal.
Thanks & Regards
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio