Post
Topic
Board Development & Technical Discussion
Re: Vanitygen Ouptut to csv?
by
gwlloyd
on 17/10/2014, 19:06:34 UTC
If you're having trouble editing the source then you could use the default source and just have a simple script to parse the output into a CSV. There are a million ways to do it but as an example the PHP below will extract the Address & Private Key from the standard vanitygen output.. you might need to edit it a bit as I don't use Windows but if you know a bit of Java then you'll be able to pluck out the data in the same way with that by capturing the output and parsing the relevant lines.


Code:


        exec($vanityGenLocation.' -i 1test 2>&1', $rawData);

        $parsedData['Address'] = substr($rawData[2], 9);
        $parsedData['PrivKey'] = substr($rawData[3], 9);