Added missing zeroes in the sha1 to text generation.
This commit is contained in:
parent
3bf354946f
commit
2858a9999a
1 changed files with 4 additions and 2 deletions
|
|
@ -130,9 +130,11 @@ namespace {
|
|||
{
|
||||
std::ostringstream buf;
|
||||
|
||||
for(int i = 0; i < 5 ; i++)
|
||||
for(int i = 0; i < 5 ; i++) {
|
||||
buf.width(8);
|
||||
buf.fill('0');
|
||||
buf << std::hex << message_digest[i];
|
||||
|
||||
}
|
||||
return buf.str();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue