passwords

Storing a saved password in Open Source application

匆匆过客 提交于 2019-12-12 07:14:32
问题 I'm writing a C# application that will be open source and I need to be able to store saved login information for each user. Normally I would just encrypt the password and then store it in a user settings file, but I worry that because of the code being open source it kind of defeats the point of encrypting it. Since all anyone would have to do is look at the code and grab the encryption key. Granted, it would at least make it a lot harder than the password being stored in plain text. But is

Codeigniter: How can i encrypt password before submitting the form to the controller?

巧了我就是萌 提交于 2019-12-12 07:09:57
问题 I have a simple html login form <form method="post" action="http://www.example.com/login"> <input type="text" name="text_box" /> <input type="password" name="pass_word" /> <input type="submit" name="submit"> </form> when I submit the form and in the controller public function login(){ $pass_word = $this->input->post('pass_word'); die($pass_word); } The problem here, it shows the plain password, if I type 123456 in controller , I get 123456 . Is this a security issue? Can any one get my

how to read a password protected zip file in c#

筅森魡賤 提交于 2019-12-12 07:05:31
问题 suggest me to read password protected zip file using c# 回答1: DotNetZip is a free open-source library for working with zip files. It supports password protected files so it should be just what you are after. 回答2: Following code shows how to decompress a password protected ZIP archive using our Rebex ZIP component. // open a ZIP archive using (ZipArchive zip = new ZipArchive(@"C:\archive.zip", ArchiveOpenMode.Open)) { // set the Password first zip.Password = "PASSword#123"; // extract whole ZIP

How do I store user password with Bcrypt

佐手、 提交于 2019-12-12 05:33:22
问题 I am designing a php website, and I used sha1 to store password for the users, but I later read that sha1 is unsafe, Its better i use Bcrypt, now I try to find about Bcrypt but these questions - How do you use bcrypt for hashing.. and Is Bcrypt used for Hashing is too complex, I dont understand what they explain. <?php $pass = sha1($_POST["password"]); ?> but could it be: <?php $pass = bcrypt($_POST["password"]); ?> or which is better than both. Thanks 回答1: If you are using PHP version 5.5+,

How do you password protect entering the vba code editor from a sheet? [closed]

我与影子孤独终老i 提交于 2019-12-12 05:29:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I want a method that will password protect my vba code, so that users in the sheet won't be able to go into the code editor without entering it. 回答1: You can protect your vba code by a password as described here: http://www.ozgrid.com/VBA/protect-vba-code.htm But this is not the most secure way to protect your

How can I get Python to plugin my password and Username for an .exe file it opened

心已入冬 提交于 2019-12-12 05:05:41
问题 Hey guys I'm new to programming and I would appreciate some help. My program can open an application I have but to enter the application it requires a password and username which I don't know how to make my program plug in automatically. os.system('"C:\\abc\\123\\Filepath\\File.exe"') After the code opens the program of the .exe file how do I make it to where it can than automatically plug in the username and password for the application. Please and Thank you 回答1: What you need is Pywinauto,

Is there a 'passive' way to implement a new hashing method for users passwords?

自作多情 提交于 2019-12-12 05:04:07
问题 I have an old site which I have reworked using Symfony3 and FOSUserBundle and am trying to work out the logistics of how to map the database over without having to cause problems for all the users. The 'old' site hashes the passwords before storing with: sha1("$salt1$pass$salt2") The 'new' site (using FOSUserBundle) uses it's default method of Bcrypt somewhere within the bundle. Is the below the correct way to "Bcrypt" members plaintext passwords in the database as they log in? Temporarily

Javascript Password Submit - Form

◇◆丶佛笑我妖孽 提交于 2019-12-12 04:59:08
问题 I am trying to set a password to a form. I basically want someone to type a password into a password field and hit submit and if the password is right, it redirects them to buybutton.php in the same window. If the password isn't right, a javascript alert pops up that says 'Password wrong'. I've tried to write out the Javascript but no action is happening when the button is clicked. What have I done wrong in my code below? Thanks for the help! <!DOCTYPE html> <body width="950" height="300"

Secure email without prompting for password

孤者浪人 提交于 2019-12-12 04:54:58
问题 I'm currently working on a BackupManager sending an email to me after having processed all tasks. This email shall contain a log of what have been done. The problem is, that my e-mail SMTP server (gmail) only allows encrypted connections using SSL. I know how to establish such a connection, but as the program runs from 2 to 8 am or at at a similar time, I don't want to have to enter the password every time. However, I also don't want to save the password as plain text on the hard drive. So I

PrestaShop - Login programmatically

ぃ、小莉子 提交于 2019-12-12 04:47:02
问题 I am writing a android and windows native app. The native app stores the login details as reated for mulitple other web apps, and logs them into this when browsing to them from the native app. one of the buttons in my app open a prestashop site for a authenticated user. How can i set the username and password and log that user in to the site programmitcally, giving the illusion and user experience that he has been seemlessly authenticated and accessed to his shop. 回答1: Basically do the same