Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Johanakerblom on January 20, 2014, 07:41:45 PM



Title: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 07:41:45 PM
I want to be able to calculate a bitcoin address from a hex-private key of my choosing on windows 95.

I have tried bitaddress.org but it just doesn't work, it takes over a minute to load and all i get is a public key and a small qr-code.

I've also tried https://blockchain.info/sv/q/addrpubkey but i can't even load that page.

Help me!


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 08:10:36 PM
I can make a small script for you if you can't find anything.

I hope your Windows 95 machine is offline by the way - is it?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 08:14:50 PM
please do :)

It will be offline and will continue to be offline when i can generate the addresses.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 08:33:41 PM
please do :)

It will be offline and will continue to be offline when i can generate the addresses.

Sorry, I spoke a little too fast. I need to mention that I will only have time to do this by next weekend, not earlier - unless you really need this urgently and are willing to make a donation.

Also, to be sure that your system is able to run Python 2.7 scripts involving EC math, a good and quick test would be to see if my NoBrainr tool is working for you. If it gives any errors, please post them here.

NoBrainr thread: https://bitcointalk.org/index.php?topic=308972.0


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 08:40:09 PM
I will run NoBrainr and see what happends.

I will make a donation when the program works.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 08:52:06 PM
I will run NoBrainr and see what happends.

I will make a donation when the program works.

OK, sounds good - I will wait for your feedback on running NoBrainr before starting.
If you get no errors, I should be able to make the script you need quite fast, as it will easily build on the Python libraries included in the NoBrainr package.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 08:56:19 PM
I get this error message when i press nb_1052.exe

http://imgur.com/I0vtadA


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:03:55 PM
When i run NoBrainr/1.052/c_/Python27/python.exe it tells me it needs a later version of Windows
: /


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Remember remember the 5th of November on January 20, 2014, 09:06:23 PM
OP, may I ask why Windows 95? Isn't that like two decades old?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:12:30 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Meuh6879 on January 20, 2014, 09:15:28 PM
 8) use LiveCD (linux) on Win95 machine ... that's the right thing to do. ;D


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 09:16:40 PM
When i run NoBrainr/1.052/c_/Python27/python.exe it tells me it needs a later version of Windows
: /

OK, thanks for your feedback. To resolve this, I would suggest that you install Python 2.5.4, which is the latest version of Python that supports win 95 and is available at http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi

If this installation completes without errors, copy the entire 'App' folder from the NoBrainr installation under the Python2.5.4 location and try to run NoBrainr script from the command line - something along the lines of:
 ..\python.exe NoBrainr.py


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 09:17:21 PM
8) use LiveCD (linux) on Win95 machine ... that's the right thing to do. ;D

Also a good idea, of course :)


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:19:50 PM
8) use LiveCD (linux) on Win95 machine ... that's the right thing to do. ;D

Great idea! hah hm..

.. damn, it has no floppy drive

[/quote]

OK, thanks for your feedback. To resolve this, I would suggest that you install Python 2.5.4, which is the latest version of Python that supports win 95 and is available at http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi

If this installation completes without errors, copy the entire 'App' folder from the NoBrainr installation under the Python2.5.4 location and try to run NoBrainr script from the command line - something along the lines of:
 ..\python.exe NoBrainr.py
[/quote]

I'm working on it


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 20, 2014, 09:23:28 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:26:47 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

I want to generate the private keys myself


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Meuh6879 on January 20, 2014, 09:27:36 PM
do a net install ... of linux if you don't have CD reader.
http://www.linuxjournal.com/content/slimline-debian-install-its-easier-you-might-think


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: RoxxR on January 20, 2014, 09:27:57 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

It seems OP doesn't want the Win95 machine to generate the privkeys - just to convert a hex input into a bitcoin address - if I understand the top post correctly.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:34:00 PM
When i run NoBrainr/1.052/c_/Python27/python.exe it tells me it needs a later version of Windows
: /

OK, thanks for your feedback. To resolve this, I would suggest that you install Python 2.5.4, which is the latest version of Python that supports win 95 and is available at http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi

If this installation completes without errors, copy the entire 'App' folder from the NoBrainr installation under the Python2.5.4 location and try to run NoBrainr script from the command line - something along the lines of:
 ..\python.exe NoBrainr.py

When i double-click python-2[1].5.4.msi it asks for a program to open it with, hm..

do a net install ... of linux if you don't have CD reader.
http://www.linuxjournal.com/content/slimline-debian-install-its-easier-you-might-think

Interesting :) i will try that is flatflys method doesn't work

I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

It seems OP doesn't want the Win95 machine to generate the privkeys - just to convert a hex input into a bitcoin address - if I understand the top post correctly.

That is correct.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 09:41:08 PM
You need to install MSI support for Win95:
EDIT: Link offline.. :(

I will make and upload a zip of the proper Python runtime...


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: mmitech on January 20, 2014, 09:41:40 PM
I didn't read all posts, but seriously windows 95 ? why ?

if you are just playing around and not that you cant afford a new PC that can run windows 7 or Ubuntu 12.04 then I really want to know why Win95 ?

if you are from EU and if you can not afford a new PC I can donate a used machine that I do not use anymore, it has a Core2Duo 2.33 GHz and 3GB DDR2, and 320 or 500 GB (don't remember) and it is a Lenovo SFF that comes with windows Vista licence that you can downgrade to win XP if you wish.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 09:48:06 PM
I didn't read all posts, but seriously windows 95 ? why ?

if you are just playing around and not that you cant afford a new PC that can run windows 7 or Ubuntu 12.04 then I really want to know why Win95 ?

if you are from EU and if you can not afford a new PC I can donate a used machine that I do not use anymore, it has a Core2Duo 2.33 GHz and 3GB DDR2, and 320 or 500 GB (don't remember) and it is a Lenovo SFF that comes with windows Vista licence that you can downgrade to win XP if you wish.

Thank you for the offer, but i'm fine :)

Older machines maybe have less surveillance on them like these: http://news.cnet.com/8301-13578_3-57617244-38/nsa-reportedly-using-radio-waves-to-tap-offline-computers/


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 09:53:32 PM
OK, here you go (http://trax.x10.mx/P254.zip): a zip file with a portable Python 2.5.4, that you can unzip to any folder on your Win95 machine. I've also added NoBrainr in there so you can see if it works. (The "App" subfolder)

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py

If you get output similar to the below line, it means everything's fine and I can proceed with the actual script...

Code:
1G2YmiFZmhrQvvCPapTSXLoXF6Dm6FVWSm == fonts night lab! canon atop dx madly


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 20, 2014, 09:57:39 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

I want to generate the private keys myself

Oh, I see you are generating the private keys manually using dice? So you just want to do the EC math and hashing on the Win 95 computer? Unique use case.

You know if I were in your situation I would worry about whether the address corresponds with the private key you have. Using well tested, widely used software gives you at least some degree of comfort that the hashing is done correctly. Not sure the same can be said about bespoke one off scripts.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 10:02:44 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

I want to generate the private keys myself

Oh, I see you are generating the private keys manually using dice? So you just want to do the EC math and hashing on the Win 95 computer? Unique use case.

You know if I were in your situation I would worry about whether the address corresponds with the private key you have. Using well tested, widely used software gives you at least some degree of comfort that the hashing is done correctly. Not sure the same can be said about bespoke one off scripts.

Converting a hex number to a bitcoin address does not require a very complex script, and I've actually worked with that for a couple years now... Also my scripts use the python-ecdsa library for the more critical parts, which has been battle tested in the field (by electrum).

And finally the integrity of the result could be cross-checked using the verifymessage function of bitcoind or electrum (for instance).


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 10:29:43 PM
My script is almost complete.

Here's what it looks like.  The source code is around 30 lines.  Hopefully, this is what you are looking for.

https://i.imgur.com/Mq76ipk.png (http://imgur.com/Mq76ipk)


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 10:34:01 PM
My script is almost complete.

Here's what it looks like.  The source code is around 30 lines.  Hopefully, this is what you are looking for.

https://i.imgur.com/Mq76ipk.png (http://imgur.com/Mq76ipk)

That does look neat!

Sadly i'm stuck trying to unzip it, how embarrassing, so far i've tried http://gnuwin32.sourceforge.net/downlinks/unzip.php but i can't find the .exe file after i install it.

Can you maybe make it downloadable as a folder?

Edit: nevermind! I manged to unzip it

Edit2: Yup, 7z did the trick


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 20, 2014, 10:49:23 PM
Folders always need to be archived to be downloaded...
Perhaps you will have more luck with 7z:

http://downloads.sourceforge.net/sevenzip/7z920.exe
http://www.7-zip.org/

It's just 1MB and open source.

I will need to go offline now but will be back a bit later, or tomorrow (not sure yet)


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 20, 2014, 10:59:08 PM
Python seems to work :)

NoBrainr.py still asks for a program to be opened with.

See you later or tomorrow.

Edit: i wanna sleep, let's call it a day.



Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 20, 2014, 10:59:31 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

I want to generate the private keys myself

Oh, I see you are generating the private keys manually using dice? So you just want to do the EC math and hashing on the Win 95 computer? Unique use case.

You know if I were in your situation I would worry about whether the address corresponds with the private key you have. Using well tested, widely used software gives you at least some degree of comfort that the hashing is done correctly. Not sure the same can be said about bespoke one off scripts.

Converting a hex number to a bitcoin address does not require a very complex script, and I've actually worked with that for a couple years now... Also my scripts use the python-ecdsa library for the more critical parts, which has been battle tested in the field (by electrum).

And finally the integrity of the result could be cross-checked using the verifymessage function of bitcoind or electrum (for instance).

Your script will sign messages too? He will need the private key to sign messages and since the private key is not supposed to leave the offline system he will need message signing software installed on that offline system. Not sure whether bitcoin-qt/d or electrum will work on Win 95 so your script will have to do the signing. The verification he can do on his online system, no problem.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 21, 2014, 08:52:42 AM
The script does not need to sign messages.

When i want to spend the coins i will import the private key to an online system.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 21, 2014, 08:59:24 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 21, 2014, 09:36:04 AM
The script does not need to sign messages.

When i want to spend the coins i will import the private key to an online system.

I was referring to flatfly's post above where he talks about how a message signature would provide proof of the correct address.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: e4xit on January 21, 2014, 10:02:06 AM
I didn't read all posts, but seriously windows 95 ? why ?

if you are just playing around and not that you cant afford a new PC that can run windows 7 or Ubuntu 12.04 then I really want to know why Win95 ?

if you are from EU and if you can not afford a new PC I can donate a used machine that I do not use anymore, it has a Core2Duo 2.33 GHz and 3GB DDR2, and 320 or 500 GB (don't remember) and it is a Lenovo SFF that comes with windows Vista licence that you can downgrade to win XP if you wish.

Thank you for the offer, but i'm fine :)

Older machines maybe have less surveillance on them like these: http://news.cnet.com/8301-13578_3-57617244-38/nsa-reportedly-using-radio-waves-to-tap-offline-computers/

So you are so security paranoid (above article) yet deciding to use still a very old operating system with guaranteed holes and flaws in... Ok bud; good luck!


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: RoxxR on January 21, 2014, 10:07:12 AM
I didn't read all posts, but seriously windows 95 ? why ?

if you are just playing around and not that you cant afford a new PC that can run windows 7 or Ubuntu 12.04 then I really want to know why Win95 ?

if you are from EU and if you can not afford a new PC I can donate a used machine that I do not use anymore, it has a Core2Duo 2.33 GHz and 3GB DDR2, and 320 or 500 GB (don't remember) and it is a Lenovo SFF that comes with windows Vista licence that you can downgrade to win XP if you wish.

Thank you for the offer, but i'm fine :)

Older machines maybe have less surveillance on them like these: http://news.cnet.com/8301-13578_3-57617244-38/nsa-reportedly-using-radio-waves-to-tap-offline-computers/

So you are so security paranoid (above article) yet deciding to use still a very old operating system with guaranteed holes and flaws in... Ok bud; good luck!

Using an antiquated OS actually does make some sense in this context.  Provided it is used on an airgapped machine, of course.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 21, 2014, 03:15:53 PM
I want to be able to use the clipboard for input and output.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 21, 2014, 03:21:58 PM
I want to be able to use the clipboard for input and output.

What?? Linux has a clipboard too.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: RoxxR on January 21, 2014, 05:55:48 PM
I want to be able to use the clipboard for input and output.

What?? Linux has a clipboard too.

When did he mention Linux? And the condescending tone of your comments is sometimes annoying. Please stop doing that.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 21, 2014, 10:46:52 PM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 21, 2014, 11:00:48 PM
I had the computer lying around, i though i would generate addresses offline with it and then keep it offline in case there is a virus that can upload the addresses that the computer generated offline once it gets online again.

Well the problem is that with a Windows version that old you don't even know whether you are getting cryptographically secure private keys. MS software that old did have a weak random number generator if I remember correctly.

You know you can install Linux on old computers. A debian wheezy + xfce installation uses barely any resources. Not sure how feasible that might be for you though. Depends on your skill level.

I want to generate the private keys myself

Oh, I see you are generating the private keys manually using dice? So you just want to do the EC math and hashing on the Win 95 computer? Unique use case.

You know if I were in your situation I would worry about whether the address corresponds with the private key you have. Using well tested, widely used software gives you at least some degree of comfort that the hashing is done correctly. Not sure the same can be said about bespoke one off scripts.

Converting a hex number to a bitcoin address does not require a very complex script, and I've actually worked with that for a couple years now... Also my scripts use the python-ecdsa library for the more critical parts, which has been battle tested in the field (by electrum).

And finally the integrity of the result could be cross-checked using the verifymessage function of bitcoind or electrum (for instance).

Your script will sign messages too? He will need the private key to sign messages and since the private key is not supposed to leave the offline system he will need message signing software installed on that offline system. Not sure whether bitcoin-qt/d or electrum will work on Win 95 so your script will have to do the signing. The verification he can do on his online system, no problem.

My script doesn't sign messages but doesn't need to: there's the excellent PyWallet for that. I'm not 100% sure, but based on a first look at the code, I think it should work under Win95.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Abdussamad on January 22, 2014, 02:58:18 AM
I want to be able to use the clipboard for input and output.

What?? Linux has a clipboard too.

When did he mention Linux? And the condescending tone of your comments is sometimes annoying. Please stop doing that.

Hey feel free to add me to your ignore list. But I will continue to post what I like.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 09:04:59 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py

I have opened the MS-DOS-promt with Start Menu/Run/command.

When i use python.exe the MS-DOS-promt changes name to PYTHON.

Aren't you supposed to give me your script now, or do i already have it?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 09:42:59 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py

I have opened the MS-DOS-promt with Start Menu/Run/command.

When i use python.exe the MS-DOS-promt changes name to PYTHON.

Aren't you supposed to give me your script now, or do i already have it?

Good to know that python is working, but please try to run nobrainr.py as described in my previous post to see if the ecdsa library is working fine on win95.

Depending on the results you get, I will adapt the new script and post it for you. 



Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 09:54:05 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py

I have opened the MS-DOS-promt with Start Menu/Run/command.

When i use python.exe the MS-DOS-promt changes name to PYTHON.

Aren't you supposed to give me your script now, or do i already have it?

Good to know that python is working, but please try to run nobrainr.py as described in my previous post to see if the ecdsa library is working fine on win95.

Depending on the results you get, I will adapt the new script and post it for you. 



NoBrainr.py asks for a program to be opened with.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 10:05:38 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py

I have opened the MS-DOS-promt with Start Menu/Run/command.

When i use python.exe the MS-DOS-promt changes name to PYTHON.

Aren't you supposed to give me your script now, or do i already have it?

Good to know that python is working, but please try to run nobrainr.py as described in my previous post to see if the ecdsa library is working fine on win95.

Depending on the results you get, I will adapt the new script and post it for you. 



NoBrainr.py asks for a program to be opened with.

That's strange...

Even when running it with the following command?
..\python.exe NoBrainr.py

Can you post a screenshot?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 10:10:07 AM
http://imgur.com/gsoZXWj

I'm probably doing something wrong.

Edit: It's Swedish btw, i live in Sweden.

Edit2: I can only do frontslash, not backslash.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: deepceleron on January 22, 2014, 10:15:33 AM

So once this is unzipped, just cd to that App folder, and type:
..\python.exe NoBrainr.py


I don't understand this part.

I have located the app folder but then what?

Open a command prompt (Start Menu/Run/"cmd")
then type:
 cd Path\to\App  (eg: cd c:\python25\app\)
and finally:
 ..\python.exe NoBrainr.py

I have opened the MS-DOS-promt with Start Menu/Run/command.

When i use python.exe the MS-DOS-promt changes name to PYTHON.

Aren't you supposed to give me your script now, or do i already have it?

Good to know that python is working, but please try to run nobrainr.py as described in my previous post to see if the ecdsa library is working fine on win95.

Depending on the results you get, I will adapt the new script and post it for you.  



NoBrainr.py asks for a program to be opened with.
cd "place where you unzipped the nobrainr.py"
c:\python25\python.exe nobrainr.py

This is the reason newer versions don't work:
http://wishmesh.com/2009/09/microsoft-visual-c-supported-target-windows-versions/

Python 2.7, for example, is built with MSVC 2008, and 3.x with MSVC 2010.

I spend a very brief time looking into old C compilers that can make small DOS executables, such as released-as-freeware Borland Turbo C++ 3.0. It is conceivable to do address creation on very small DOS exes from a floppy, which also enables boot cd as floppy image, if you were to do the programming. You would need 16-bit friendly ECDSA and SHA256/RIPEMD160 code. DOS also allows easy printing to LPT port.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 10:30:15 AM
http://imgur.com/gsoZXWj

I'm probably doing something wrong.

Edit: It's Swedish btw, i live in Sweden.

Edit2: I can only do frontslash, not backslash.

There's your issue... You do need the backslash.  As a quick hack you could copy paste it from here? \


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: mmitech on January 22, 2014, 10:31:35 AM
https://i.imgur.com/8ONuVFZ.png


Edited: I just had to look again and this is the right one, can you confirm ?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 10:34:35 AM
I can type backslash on internetexplorer but i can't copy it to MS-DOS(^V appears) and ALT-Q doesn't work. T_T


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 10:40:11 AM
https://i.imgur.com/8ONuVFZ.png


Edited: I just had to look again and this is the right one, can you confirm ?

I've tried that button, also that button with ctrl+alt, also that button with shift.

I will go to work in 20 minutes.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: mmitech on January 22, 2014, 10:45:49 AM
https://i.imgur.com/8ONuVFZ.png


Edited: I just had to look again and this is the right one, can you confirm ?

I've tried that button, also that button with ctrl+alt, also that button with shift.

I will go to work in 20 minutes.


OK type in your browser the backslash then copy it and open the cmd and past it this way:


right click on the menu bar


 https://i.imgur.com/9S6vas5.png

https://i.imgur.com/vSabR0p.png

https://i.imgur.com/oT0osiN.png


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 10:53:48 AM
It worked! Hah!

Here is the result: http://imgur.com/TiDJZuV


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 11:12:57 AM
It worked! Hah!

Here is the result: http://imgur.com/TiDJZuV

Great! I will post the actual script shortly. You can save it into the App folder and run it in the same way as nobrainr.

If you're happy with it and decide to make a fair donation, I can spend more time on it to see how to add clipboard support!


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: deepceleron on January 22, 2014, 11:29:36 AM
I am reminded of the directory separator being a different character in Japanese DOS, "¥", and this is likely the case on the Swedish localized Win95, that there is a particular key to be used in different language. A localized keyboard with English Windows may have similar problems.

In the Japanese encodings ISO 646 (a 7-bit code based on ASCII), JIS X 0201 (an 8-bit code), and Shift JIS (a multi-byte encoding which is 8-bit for ASCII), the code point 0x5C that would be used for backslash in ASCII is instead rendered as a yen mark (¥), while in Korean encoding, it is drawn as a won currency symbol (₩). Computer programs still treat the code as a backslash in these environments, causing confusion, especially in MS-DOS filenames.[13] Due to extensive use of the backslash code point to represent the yen mark, even today some Unicode fonts like MS Mincho render the backslash character as a ¥, so the Unicode characters 00A5 (¥) and 005C (\) look identical when these fonts are selected. Several other ISO 646 versions also replace backslash with characters like Ö (German, Swedish), Ø (Danish, Norwegian), ç (French) and Ñ (Spanish), leading to similar problems. Since the character was originally not available in all character sets and keyboard layouts, ANSI C can transcribe it in form of the trigraph ??/ which, outside string literals, is equivalent to the \ character. RFC 1345 recommends to transcribe the character as digraph //, if not available.[14]

alt+shift+7 is apparently how you type \ on a Swedish keyboard if you need that character.

Another fun fact, the Apple ⌘ character is "tourist attraction" in Sweden.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: RoxxR on January 22, 2014, 11:31:30 AM
I am reminded of the directory separator being a different character in Japanese DOS, "¥", and this is likely the case on the Swedish localized Win95, that there is a particular key to be used in different language. A localized keyboard with English Windows may have similar problems.

In the Japanese encodings ISO 646 (a 7-bit code based on ASCII), JIS X 0201 (an 8-bit code), and Shift JIS (a multi-byte encoding which is 8-bit for ASCII), the code point 0x5C that would be used for backslash in ASCII is instead rendered as a yen mark (¥), while in Korean encoding, it is drawn as a won currency symbol (₩). Computer programs still treat the code as a backslash in these environments, causing confusion, especially in MS-DOS filenames.[13] Due to extensive use of the backslash code point to represent the yen mark, even today some Unicode fonts like MS Mincho render the backslash character as a ¥, so the Unicode characters 00A5 (¥) and 005C (\) look identical when these fonts are selected. Several other ISO 646 versions also replace backslash with characters like Ö (German, Swedish), Ø (Danish, Norwegian), ç (French) and Ñ (Spanish), leading to similar problems. Since the character was originally not available in all character sets and keyboard layouts, ANSI C can transcribe it in form of the trigraph ??/ which, outside string literals, is equivalent to the \ character. RFC 1345 recommends to transcribe the character as digraph //, if not available.[14]

alt+shift+7 is apparently how you type \ on a Swedish keyboard if you need that character.

Or: AltGr + should work too


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 04:53:06 PM
Ok i will be able to post the package in an hour or so. Launching the new script will also be more user-friendly...


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 05:14:54 PM
Ok i will be able to post the package in an hour or so. Launching the new script will also be more user-friendly...

Okey, will 0.1btc be enough for a qr-code function?

Edit: If that's difficult to do, maybe you know a good website that i can download.

I've tried: http://www.wolframalpha.com/input/?i=bitcoin%3A1NYsMtFgaSWvcTg4sM5fRGSZTcZcSkXsYM%3Famount%3D0.01%26amp%3Blabel%3DDonation+qr+code but it doesn't work.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 05:45:34 PM
Ok i will be able to post the package in an hour or so. Launching the new script will also be more user-friendly...

Okey, will 0.1btc be enough for a qr-code function?

Edit: If that's difficult to do, maybe you know a good website that i can download.

I've tried: http://www.wolframalpha.com/input/?i=bitcoin%3A1NYsMtFgaSWvcTg4sM5fRGSZTcZcSkXsYM%3Famount%3D0.01%26amp%3Blabel%3DDonation+qr+code but it doesn't work.

Plenty of existing Python libraries can already do that - so essentially, the hard part is finding a way to make them work under Win 95. I could take a look at this as well, but most probably not this week I'm afraid. Donate whatever you feel is fair / nice.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 05:55:12 PM
You can get the tool from:   http://trax.x10.mx/bgen-win95.7z

The size of the package is 963K and the GPG signature is below.
Of course all source code is included.

I have repackaged it differently, so you can simply unzip the archive and click the "bgen_console.cmd" file in the App folder. Let me know if that works for you.


Code:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)

iEYEABECAAYFAlLgBQ0ACgkQ0dQqIfkZdf470ACeK7VRpZvxD8seglJe3OFH2d8H
wjMAoIRJTasfrodGqtKFPledpatFyI/3
=8bg6
-----END PGP SIGNATURE-----


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 06:23:24 PM
You can get the tool from:   http://trax.x10.mx/bgen-win95.7z

The size of the package is 963K and the GPG signature is below.
Of course all source code is included.

I have repackaged it differently, so you can simply unzip the archive and click the "bgen_console.cmd" file in the App folder. Let me know if that works for you.


Code:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)

iEYEABECAAYFAlLgBQ0ACgkQ0dQqIfkZdf470ACeK7VRpZvxD8seglJe3OFH2d8H
wjMAoIRJTasfrodGqtKFPledpatFyI/3
=8bg6
-----END PGP SIGNATURE-----

I have unziped it but bgen_console.cmd asks for a program to be opened with.

What is the GPG for?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 06:28:51 PM
You can get the tool from:   http://trax.x10.mx/bgen-win95.7z

The size of the package is 963K and the GPG signature is below.
Of course all source code is included.

I have repackaged it differently, so you can simply unzip the archive and click the "bgen_console.cmd" file in the App folder. Let me know if that works for you.


Code:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)

iEYEABECAAYFAlLgBQ0ACgkQ0dQqIfkZdf470ACeK7VRpZvxD8seglJe3OFH2d8H
wjMAoIRJTasfrodGqtKFPledpatFyI/3
=8bg6
-----END PGP SIGNATURE-----

I have unziped it but bgen_console.cmd asks for a program to be opened with.

What is the GPG for?

Ah, cmd files are not supported in Win95... Simply rename both cmd files to a bat extension, so you end up with:

https://i.imgur.com/379eIjk.png (http://imgur.com/379eIjk)

Hopefully that will fix it.

The GPG sig is to verify the integrity and author of the package. If you're not familiar with using GPG, it's probably best to ignore this for now, as there's a bit of a learning curve...


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 06:39:58 PM
I have renamed them.

This happens when i start bgen_console.bat: http://imgur.com/TMV5mPF.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 06:47:41 PM
I have renamed them.

This happens when i start bgen_console.bat: http://imgur.com/TMV5mPF.

I see... The screenshot was helpful. Please re-download the package - I have just added a fix for this issue (hopefully!). I think we're almost there.

URL:  http://trax.x10.mx/bgen-win95.7z

Size: 965K (988,898 bytes)


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 06:53:04 PM
This appears: c:\bgen-win95\App, and i can type after that.

Edit: Btw, alt+shift+7 doesn't work for backslash, nor does AltGr+7. Ctrl-alt+7 works, but not in my MS-DOS.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 06:59:39 PM
This appears: c:\bgen-win95\App, and i can type after that.

That's good. But the instructions are not displayed, apparently...
Anyway, here's how to use the tool:

just type:

bgen <any hex number>

For instance:

Code:
bgen 6299c8dc7a92448a6f926b323f108fd338245e6ac1f0f54f234f859a1f11f78b

should output:

Code:
(priv) hex: 6299c8dc7a92448a6f926b323f108fd338245e6ac1f0f54f234f859a1f11f78b
(priv) wif: 5JZiCpWZjmvJQEe7HYVEyW88aEy9dGsSLn88BYaFS4mkxAQvmyR
(pub) addr: 1Gt8qfV1nSL6rS5zsXN8cNCq7ZdpG2JrWX


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 07:05:01 PM
I typed: "bgen 129361263abdf" but an error messages appears saying it can't find MSVCR71.DLL.

Does it have to be 64 digits or does it add zeroes to it if it's not?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 07:10:19 PM
I typed: "bgen 129361263abdf" but an error messages appears saying it can't find MSVCR71.DLL.

Does it have to be 64 digits or does it add zeroes to it if it's not?

Yes, it does add leading zeroes if the input is shorter than 64 digits.
I have now included MSVCR71.DLL in the archive for your convenience - Please re-download the package one more time.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 07:22:55 PM
http://imgur.com/6BhHMUz <_<

Edit: abcdef are hexadecimal digits, right?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 07:32:47 PM
http://imgur.com/6BhHMUz <_<

I think I know what this is.  I will post a fix within an hour.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 08:14:38 PM
http://imgur.com/6BhHMUz <_<

I think I know what this is.  I will post a fix within an hour.

There we go... Hopefully this is the one!   http://trax.x10.mx/bgen-win95.7z

Always a challenge to get modern things to work seamlessly on an old OS... But I'm enjoying the challenge. :)

Code:
C:\BGEN-W~1\BGEN-W~1\APP>bgen abcdef

(priv) hex: 0000000000000000000000000000000000000000000000000000000000abcdef
(priv) wif: 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEzNFtMxLtud
(pub) addr: 1JybS2Pnp5fxHr2TKWk3nZpRwgpnVhmgiZ


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 08:45:17 PM
Ya ! AH he eeh ehaha , it works, nice!

Edit: I have sent you 0.1btc,  will you work on the clipboard function now? :)


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: deepceleron on January 22, 2014, 08:47:31 PM
I just chopped some functions and features out of paperwal.py so it would run on Python 2.5, if you are interested in that as a paper wallet generator. I just have to get it back out of the python playground box... I've cythoned it but haven't gotten a win95 compiler working yet to make an exe.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 22, 2014, 08:53:27 PM
I just chopped some functions and features out of paperwal.py so it would run on Python 2.5, if you are interested in that as a paper wallet generator. I just have to get it back out of the python playground box... I've cythoned it but haven't gotten a win95 compiler working yet to make an exe.

Nah, i'm not really interested in that, i rather just write the private key in hex with a pen.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 22, 2014, 09:48:42 PM
Ya ! AH he eeh ehaha , it works, nice!

Edit: I have sent you 0.1btc,  will you work on the clipboard function now? :)

Great, thanks!
I will work on the clipboard function - expect an update within the next few days.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: ballot on January 23, 2014, 11:10:01 PM
btw why he is using win 95 and what actıally he tries to do  ::) he can buy a new computer has win xp for 0.1 btc already


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 24, 2014, 10:34:37 AM
Ya ! AH he eeh ehaha , it works, nice!

Edit: I have sent you 0.1btc,  will you work on the clipboard function now? :)

Great, thanks!
I will work on the clipboard function - expect an update within the next few days.

Added clipboard support in the latest version. This means 2 new behaviors:

1. if you just type 'bgen' without a hex number, the tool will process whatever input is in the clipboard at that time (if it's a valid hex number)
2. output is automatically copied to the clipboard in all cases

You can get it from here (temporary link):

http://trax.x10.mx/bgen-022-win95.7z

Does that work for you?


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 31, 2014, 08:56:25 AM
btw why he is using win 95 and what actıally he tries to do  ::) he can buy a new computer has win xp for 0.1 btc already

I guess i am just paranoid about modern computers being monitored even when they are so called "offline".

Flatfly, can you please update the link? It gives a 404 error now.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 31, 2014, 06:41:41 PM
btw why he is using win 95 and what actıally he tries to do  ::) he can buy a new computer has win xp for 0.1 btc already

I guess i am just paranoid about modern computers being monitored even when they are so called "offline".

Flatfly, can you please update the link? It gives a 404 error now.

Hi, I thought you had downloaded it already.
Here's a fresh link: http://trax.x10.mx/bgen-023-win95.7z
I hope it works as expected on your system.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 31, 2014, 07:35:39 PM
Something is wrong, when i open the console it tells me that there was an error when a file should be created.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 31, 2014, 07:58:37 PM
Something is wrong, when i open the console it tells me that there was an error when a file should be created.

Not sure what this is about... Probably some other win95-specific thing. Could you post a screenshot? It's OK if it's in Swedish.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on January 31, 2014, 08:05:40 PM
I just cleaned up the bat files to remove any possibly problematic features. Hopefully this will fix it:

  http://trax.x10.mx/bgen-025-win95.7z


Code:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)

iEYEABECAAYFAlLsAlMACgkQ0dQqIfkZdf6FEgCfcbPVULQinOL3yuwwGF0hiJGk
d04AoLUfMxLvGZU6DpMi7XS0DfBis6hT
=mL1C
-----END PGP SIGNATURE-----


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: Johanakerblom on January 31, 2014, 08:26:11 PM
Now i can use the clipboard as input but i have only gotten an output to the clipboard once and the output was the private key that i entered.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: flatfly on February 01, 2014, 09:55:55 AM
Now i can use the clipboard as input but i have only gotten an output to the clipboard once and the output was the private key that i entered.

Strange. This will be tricky to troubleshoot without having my own Win95 test system...
I will see I can find an alternative implementation.


Title: Re: Private key to bitcoina ddress on Windows 95
Post by: RoxxR on January 12, 2015, 07:37:56 PM
I'd love to try this program again, it seems to be just what I need right now. Does anyone still have a copy for me to download?