password-protection

Password Encryption: PBKDF2 (using sha512 x 1000) vs Bcrypt

放肆的年华 提交于 2019-12-02 14:44:54
I've been reading about the Gawker incident and several articles have cropped up regarding only using bcrypt to hash passwords and I want to make sure my hashing mechanism is secure enough to avoid switching to another method. In my current application I have opted for a PBKDF2 implementation utilising sha2-512 and a minimum of 1000 iterations. Can I ask for opinions on using PBKDF2 vs Bcrypt and whether or not I should implement a change? You're good with PBKDF2, no need to jump to bcrypt. Although, the recommendation to use 1000 iterations was made in year 2000, now you'd want much more.

PHP and MySQL - how to avoid password in source code? [duplicate]

女生的网名这么多〃 提交于 2019-12-02 13:56:32
This question already has an answer here: How to secure database passwords in PHP? 16 answers I have a small PHP application storing data in a MySQL database. Currently username / password are hard-coded in the PHP code. A situation I do not really like, for example, since the code is also available in a repository. The best idea I have is to move the data from the code to a configuration file (excluded from the repository), and somehow encode it, so is not directly readable (obfuscation). Is there any better and easy to use way to solve the issue? $link = mysql_connect('localhost', 'mysql

Eclipse secure storage

安稳与你 提交于 2019-12-02 13:55:28
Is it possible to disable completely the secure storage password of Eclipse? I am running Eclipse Helios on Windows 7. exo_cw To disable the master password prompt you have to specifiy a file containing the password with -eclipse.password , see Eclipse SDK Help and Bug 241223 . The complete procedure is as follows (this is on Linux, on Windows it should work as well if you change the paths): Exit Eclipse Delete the directory ~/.eclipse/org.eclipse.equinox.security Create a text file containing your master password, e.g. echo "secret" > ~/.eclipse/master Add to the very top of eclipse.ini,

password protected uninstall in android 4+ versions [programmatically]

*爱你&永不变心* 提交于 2019-12-02 10:31:48
问题 i want my app to have a password protected uninstall ... (like app lock) im using folling code it works on Android 2.3 but not on Android 4+ versions MANIFEST FILE <receiver android:name="fyp.invisibleink.UninstallIntentReceiver" > <intent-filter android:priority="0" > <action android:name="android.intent.action.QUERY_PACKAGE_RESTART" /> <data android:scheme="package" /> </intent-filter> </receiver> Uninstalling Activity code ublic class Uninstalling extends Activity { @Override protected

Caps Lock Image on Password Protected UITextField

亡梦爱人 提交于 2019-12-02 08:51:16
问题 I am creating an app that requires the use of a USB Keyboard. (The normal touch screen keyboard has been disabled and will not show up.) When the user installs the app for this first time, they will need to create a four digit Pin. The input field for the Pin is password protected (as in dots will appear every time a new digit is entered). The Pin UITextField is set up to only except four numeric digits. Any other letters/numbers will not be added to the UITextField. This is what it looks

Log in screen on first start

我的梦境 提交于 2019-12-02 08:45:51
how would you create an activity that only runs when the application is started for the first time ever and provides the user with a screen to input a pin and "unlock" the application First time ever meaning when the application is first installed and started for the first time. As in the FIRST EVER time it is opened. You can use android preferences for show login screen only for the first time. You can set flag in preference and check it when application start. You can always start with something like "splash screen" activity, that will only check in database/ shared preferences if user is

password protected uninstall in android 4+ versions [programmatically]

泪湿孤枕 提交于 2019-12-02 07:49:38
i want my app to have a password protected uninstall ... (like app lock) im using folling code it works on Android 2.3 but not on Android 4+ versions MANIFEST FILE <receiver android:name="fyp.invisibleink.UninstallIntentReceiver" > <intent-filter android:priority="0" > <action android:name="android.intent.action.QUERY_PACKAGE_RESTART" /> <data android:scheme="package" /> </intent-filter> </receiver> Uninstalling Activity code ublic class Uninstalling extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

How can I password protect a basic HTML page?

安稳与你 提交于 2019-12-02 06:32:29
问题 What is the simplest possible form of password protection I can use, that doesn't need to be super secure, just keep out the riffraff? It ideally can be tacked onto a website made of HTML and javascript. It also needs to work in all browsers (can't rightly allow users to just switch browsers so they can access the contents of the password-protected site!) Javascript's prompt function seems to be filtered out by IE, so that is out of the question. 回答1: Use HTTP basic authentication, as

Read/write Excel 2007 password-protected documents

感情迁移 提交于 2019-12-02 05:40:41
问题 What method does Office 2007 use for encryption (when choosing Encrypt and setting a password from Office menu)? My C# app needs to create and read encrypted Excel 2007 files (.xlsx). It is important that these files remain accessible from Excel, so I must use Microsoft's encryption method, can't brew my own. Normal Excel 2007 file is a ZIP-compressed file, and I'm accessing it using ExcelPackage, which internally uses * System.Io.Packaging.Package* (part of .net 3.0). However, the encryption

Convert ASP.NET Membership Passwords from Encrypted to Hashed

北战南征 提交于 2019-12-02 05:27:01
问题 I've developed a website that uses ASP.NET membership. Based on comments from previous sites, I decided to encrypt passwords so they could be recovered for users who forgot them. However, the new site (which now has over 500 registered users) has brought me some criticism that the industry standard is really to hash passwords. However, after a fairly extensive search, I have been unable to find anything about how to convert existing users' passwords from encrypted to hashed. I know I can