View Single Post
Nomaf
Junior Member
Join Date: Jun 2011
Old 08-27-2011 , 11:39   Re: New File Vault - A newer file vault system!
Reply With Quote #26

Can someone help me? I need a stock to find key by the phrase. I wrote something like that:
PHP Code:
stock nfv_get_key(const filename[], const identifier=';'phrase[], output[], len)
{
    if( !
file_exists(filename) )
        return 
0;
        
    new 
fopen(filename"rt");
    new 
_data[512];
    
    while( !
feof(f) )
    {
        
fgets(f_datacharsmax(_data));
        
        if( 
_data[0] == identifier && equalphrase_data ) )
        {
            
formatoutputlen"%s"_data);
            break;
        }
    }
    
    
fclose(f)
    return 
0;

But don't work.
Nomaf is offline