password-protection

Keychain: Item reported as errSecItemNotFound, but receive errSecDuplicateItem on addition

别来无恙 提交于 2019-11-27 13:31:12
问题 This issue has been bugging me for a while, and I hope someone has insight as to the cause of this. Essentially, I have a small percentage of users who are unable to save/update items to the keychain. The problematic flow of control is as follows: We check for the existence of the item using SecItemCopyMatching . This returns the error code errSecItemNotFound We then try to add the item via SecItemAdd , but this then returns errSecDuplicateItem . Because of this, we have some users who are

how to password protect downloadable pdf files in website

烂漫一生 提交于 2019-11-27 13:19:59
问题 I am having a personal portfolio website and i have a some pdf files like <a href="file.pdf">Some file</a> I dont want everyone to download the file, and i want it to protect it with password,so that i can share it with only the people i know where only the person who gives the correct password is able to download my file Note: 1. since its a personal portfolio website it do not have any "LOGIN's" 2. I have designed the webpage with HTML as a responsive code Your suggestions please, any way

What is the safest way to store a password using Code Igniter?

二次信任 提交于 2019-11-27 13:10:09
问题 I am using Code Igniter for my current project. As of now, I am using MD5 for password hashing, but I have read at a lot of places, that it is not a good practice to do so. What should I go with? Using a salt Or should I use bcrypt Also, if bcrypt is recommended, then how to use it with Code Igniter? EDIT I have put these files in application/libraries PasswordHash.php c/Makefile c/crypt_private.c In my controller, I am using this code - $params = array( 'phpass_hash_strength' => 8, 'phpass

ASP.NET MVC Identity login without password

梦想与她 提交于 2019-11-27 12:53:11
问题 I have been given the assignment of modifying an ASP.NET MVC application in such a way that surfing to myurl?username=xxxxxx would automaticly log in user xxxxxx, without asking for passwords. I already made it very clear that this is a terrible idea for many security related reasons and scenarios, but the people in charge are determined. The site would not be publicly available. So: is there any way of signing in without password by for example extending the Microsoft.AspNet.Identity

How do I measure the strength of a password?

依然范特西╮ 提交于 2019-11-27 12:31:26
I was looking for an effective algorithm that can give me an accurate idea of how strong a password is. I found that several different websites use several different algorithms as I get different password strength ratings on different websites. This has grown to my general brain dump of best practices for working with passwords in PHP/MySQL. The ideas presented here are generally not my own, but the best of what I've found to date. Ensure you are using SSL for all operations involving user information. All pages that involve these forms should check they are being called via HTTPS, and refuse

Securing a password in source code?

混江龙づ霸主 提交于 2019-11-27 12:02:40
I have a password in my code which is needed to connect to a sftp server. Whats the best way to "obfuscate" or hide it in the code? Thanks Don't store you password in your source code, store it in a protected section within you App.Config (or Web.Config). See Encrypting Configuration File Sections Using Protected Configuration section in this Microsoft Doc This works by encrypting the encryption keys using built-in Windows stuff, locked to the Mac address and various other undocumented things. This will even work if you are using more than one server: ... if you are planning to use the same

How to send password securely via HTTP using Javascript in absence of HTTPS?

元气小坏坏 提交于 2019-11-27 10:33:36
The very basic issue all developers face: Whenever user submits the form, the password is sent via network and it must be protected. The site I develop for doesn't have HTTPS. Neither does the owner want to buy a SSL certificate, nor is he interested in a self-signed one. So I want to protect the password sent via HTTP using Javascript when submitting form. To eager downvoters: How to send password securely over HTTP? DOES NOT give any sensible solution and I am in another situation. If I use MD5, one can reverse that password string. What about nonce/HMAC? Any available Javascript library for

Easy way to password-protect php page

风流意气都作罢 提交于 2019-11-27 10:21:32
I have a page I want to password-protect. I've tried doing HTTP authentication, but for some reason it doesn't work on my hosting. Any other quick (and easy) way to do this? Thanks! JacobN Not exactly the most robust password protection here, so please don't use this to protect credit card numbers or something very important. Simply drop all of the following code into a file called (secure.php), change the user and pass from "admin" to whatever you want. Then right under those lines where it says include("secure.html"), simply replace that with the filename you want them to be able to see.

php password_verify not working with database

笑着哭i 提交于 2019-11-27 08:24:56
I am using php 5.4 with this backwards compatibility script: https://github.com/ircmaxell/password_compat/blob/master/lib/password.php that shouldn't matter though, because I can get the hashing and verification process working in my registration function: $hash = password_hash($pass, PASSWORD_DEFAULT); echo $pass; echo $hash; if( password_verify($pass,$hash) ) echo 'success'; else echo 'failure'; //success is always shown //EXAMPLE INPUT $pass = 'password'; //EXAMPLE OUTPUT password$2y$10$JK1jumvvSIm/gP3fWE3k9O98MzvHKDRYCjRPBniYg9riACyQw7WYSsuccess but whenever I try to store the hash in a

How password protection of Excel VBA code works?

泄露秘密 提交于 2019-11-27 06:51:14
问题 This question is related to my previous one. Can you explain or provide a link to an explanation of how Excel VBA code password protection actually works in versions prior to 2007? What is the difference in Excel 2007 and previous versions in terms of password protection? Also does Excel's password protection actually encrypt the code? How does Excel execute the code if it is encrypted? Lastly, how does password removal software for excel work? 回答1: VBA security is widely considered to be