Password Storer (Half Done!)

Posts 1–15 of 16 · Page 1 of 2
[RELEASE][UPDATE]Password Storage & Finding!
EDIT: I don't know why, but you must put your pin into the MyPin file for this to work, it is still kinda buggish...
All bugs fixed just follow the README in the rar
Run As ADMIN!!!

Hey guys here is my Password Storage device that stores it in a hidden directory that you can choose (Only by editing the code). This is open source, and right now, since its midnight, I only made the actual write to a file part of the Storage System... So yea here is the code, download and instructions in the description!
This code has some bugs I am working on fixing it ASAP
Code:
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <fstream>
#include <string>

using namespace std;

int main()
{
    string UserName, Pass, Website, A, B, C, D, E, F;
    int pin;
    int pinguess;
    fstream MyPin("C:/Windows/System32/MyPin.txt");
    MyPin >> pin;
    if(pin == 0){goto NewPin;};
    cout << "What is your PIN?\n";
    cin >> pinguess;
    if(pinguess == pin)
    {
    Start:
    fstream MyFile_op("C:/Windows/System32/LoginDetails.txt");
    cout << "Numpad 1 stores a username and password, Numpad 2 will read them and print them for you :D \n";
    while(1)
    {
            if(GetAsyncKeyState(VK_NUMPAD1)){
                                             system("PAUSE");
                                             goto Store;
                                             }
            if(GetAsyncKeyState(VK_NUMPAD2)){
                                             system("PAUSE");
                                             goto Fetch;
                                             }
    }
    Store:
             cout << "What website is this for homie?\n";
             cin >> Website;
             cout << "What is your username?\n";
             cin >> UserName;
             cout << "What is your password?\n";
             cin >> Pass;
                 MyFile_op << "Website: " << Website << "\nUsername: " << UserName << "\nPassword: " << Pass;
                 goto end;
    Fetch:
          MyFile_op >> A;
          MyFile_op >> B;
          MyFile_op >> C;
          MyFile_op >> D;
          MyFile_op >> E;
          MyFile_op >> F;
          cout << A << " " << B << endl << C << " " << D << endl << E << " " << F << endl;
          system("PAUSE");
          goto end;
}
    NewPin:
           cout << "Enter a PIN that is any amount long!";
           cin >> pin;
           MyPin << pin;
           goto Start;
           end:
    return 0;    
}
I Want to add something I DIDN'T know when I made this last night. If you store it in System32 it does not store when you restart... Sorry for the misunderstanding but I had to restart and the files were gone. Just change the folder, it can't be that hard to do!
UPDATE:
I HAVE FINISHED THE SYSTEM, DOWNLOAD NEW IN ATTACHMENTS OR COMPILE THE SOURCE UP THERE!!!
Password Storage.rarattachment deleted · 1 downloads before removal
Thanks for the source mwb , nice find
Quote Originally Posted by Obama View Post
Thanks for the source mwb , nice find
I made this myself obama... I am finishing it up right now... I don't C&P that is choobish :P

Quote Originally Posted by Melodia View Post
This is the safest thing I ever saw.
For reals or sarcasm?

Quote Originally Posted by mudlord View Post
Why the lack of support of Blowfish encryption?

You could make a GUI in Win32, to set/read the values, and use Blowfish or even TEA to encrypt the logs. Makes more sense to me if you do that. If you want assistance with that, I would be glad to share more advice or even code a bit.
I don't make GUI it is a waste of time, if what you need can be done in a console application...
Quote Originally Posted by mwb1234 View Post
I don't make GUI it is a waste of time, if what you need can be done in a console application...
Do you use MSVC++?
if so stop using the GUI, use the console instead ;P
Quote Originally Posted by Hell_Demon View Post
Do you use MSVC++?
if so stop using the GUI, use the console instead ;P
I always use console, and I use DevC++. GUI is a waste of time in my opinion. Like the system?
Quote Originally Posted by mwb1234 View Post
I always use console, and I use DevC++. GUI is a waste of time in my opinion. Like the system?
u dont get wat hes saying... and IDE has a GUI, hes saying compile u code via a command line compiler instead.
Pretty cool, thanks for sharing.
This is the safest thing I ever saw.
Why the lack of support of Blowfish encryption?

You could make a GUI in Win32, to set/read the values, and use Blowfish or even TEA to encrypt the logs. Makes more sense to me if you do that. If you want assistance with that, I would be glad to share more advice or even code a bit.
Quote Originally Posted by mwb
I don't know why, but you must put your pin into the MyPin file for this to work
Quote Originally Posted by mwb
fstream MyPin("C:/Windows/System32/MyPin.txt");
MyPin >> pin;
if(pin == 0){goto NewPin;};
Can't read what is not there, so initialize pin as 0.
And goto is ugly, why not use if(x) {...} else { ... }?

edit: Other then that, good job ^^
Quote Originally Posted by Hell_Demon View Post
Can't read what is not there, so initialize pin as 0.
And goto is ugly, why not use if(x) {...} else { ... }?

edit: Other then that, good job ^^
Yea I know goto is ugly but it helps me stay organized. I personally would not be able to keep track of a bunch of if(x) statements so I just use goto. I suppose I could just write functions for ReadingFile and WritingFile.
HD I have a question also,
If I want to make a user customize the filename, and then have it create that, how can I do this?
use a char array to store a filename, cin to read in a filename.

Then use the 'open' member of ofstream(file stream for output), then feed it a blank string by just using ""(nothing in between) and close it.

if you want me to just post the code just ask ^^
Quote Originally Posted by Hell_Demon View Post
use a char array to store a filename, cin to read in a filename.

Then use the 'open' member of ofstream(file stream for output), then feed it a blank string by just using ""(nothing in between) and close it.

if you want me to just post the code just ask ^^
lol that would help the reference manual doesnt have any of that shiznuggetstuff
Btw why do you have the I am why06 avatar?
Where the fuck did the rest of the posts go?!
MPGH Rewound time.
Posts 1–15 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us