![]() |
|
Is this possible to code? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: Is this possible to code? (/Thread-Is-this-possible-to-code) Pages:
1
2
|
Is this possible to code? - Endgame - 05-05-2016 I wanna pretty much code a password manager. Is this ok to do with Python? Example: I'd like to be able to input my username and/or email and password and it automatically puts it all into a list. Also, save this, and make it so I can access it again and input and save another entry. (I don't wanna have to edit the source code or w/e it's called everytime I wanna add in a new entry. Just wanna be able to run it and be able to add in what i want.) RE: Is this possible to code? - sleaze - 05-05-2016 i mean if u use the w10 beta Code: bash
cat passwords.txtRE: Is this possible to code? - meow - 05-05-2016 Save this code in a Python file and run it through CMD (you can change the file name to whatever) - Code: f = open('lololol.txt','a')
site = raw_input("Website and/or app that these credentials are for: ")
ue = raw_input("Username and/or email: ")
p = raw_input("Password: ")
f.write(site+"\t"+ue+":"+p+"\n")
f.close()http://prntscr.com/b0famy RE: Is this possible to code? - Endgame - 05-05-2016 (05-05-2016, 04:44 AM)meow Wrote: Save this code in a Python file and run it through CMD (you can change the file name to whatever) - Awesome. I haven't learned much of Python, so anyway you could tell me how to save the code in Python file? RE: Is this possible to code? - meow - 05-05-2016 (05-05-2016, 04:58 AM)Endgame Wrote: Awesome. I haven't learned much of Python, so anyway you could tell me how to save the code in Python file? 1. Install python 2.7.3 (whatever the latest 2.7.* version is) 2. open notepad 3. paste that code into there 4. save it as anything.py 5. double click the file RE: Is this possible to code? - insidious - 05-05-2016 Pretty much anything imaginable is possible to be coded. Usually the question isn't if this is possible it's how RE: Is this possible to code? - Endgame - 05-05-2016 (05-05-2016, 06:53 AM)insidious15 Wrote: Pretty much anything imaginable is possible to be coded. Usually the question isn't if this is possible it's how This is so very true. RE: Is this possible to code? - Inori - 05-05-2016 If you want pure batch, this should work Code: :: disable command reflection
@echo off
set /p user=Username:
set /p pass=Password:
:: append to passwords.txt
echo %user%:%pass%>>passwords.txtRE: Is this possible to code? - bl4ck_c0d3 - 05-06-2016 I would recommend you to make a password manager in a webapp instead of using the cmd to open the program, why? Webapp: Interface more beatiful, buttons, text areas, inputs, own account system. Cmd: Terrible Interface, rare use because its with commands, copying and pasting gets harder there. Hope you understood my point. P.D: i recommend you to use a PHP framework such as ruby on rails (onemonth) or something like that, its amazing. RE: Is this possible to code? - Sans - 05-06-2016 (05-06-2016, 03:46 PM)bl4ck_c0d3 Wrote: use a PHP framework such as ruby on rails. Ruby on Rails has nothing to do with PHP in any way, meaningful or otherwise. You'd have to learn Ruby (a whole different language!) in order to work with Rails. |