Raised This Month: $81 Target: $400
 20% 

[INC] SHA-1 hashing stocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 10-26-2016 , 05:30   Re: [INC] SHA-1 hashing stocks
Reply With Quote #7

This actually generates a small error in the hex string (without cascading) for a few of my files, which usually involves outputting fewer than 40 characters, I narrowed it down to the transcription part of the code:

PHP Code:
SHA1Finalize(Context[SHA1Context], String:output[], bool:bHex)
{
    if(
bHex)
    {
        for(new 
i=0;i<5;i++)
            
// Originally: Format(output, 41, "%s%x", output, Context[Message_Digest][i]);
            
Format(output41"%s%08x"outputContext[Message_Digest][i]);
... 
Attached Files
File Type: inc sha1.inc (8.4 KB, 206 views)

Last edited by AI_; 10-26-2016 at 05:32.
AI_ is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode