password-protection

Cakephp Password Protection with htaccess and htpasswd - howto?

♀尐吖头ヾ 提交于 2019-12-19 02:46:07
问题 How can I password protect my website during development with htaccess in Cakephp? which htaccess file do I have to change? what do I have to write in the htaccess where do I put the .htpasswd? I searched google for that but couldn't find anything useful, I hope you could help me! Thanks Till that helped me solve the problem! For CakePHP-Users: - Modify the .htaccess in /app/webroot/ - add something like that at the beginning of the .htaccess-file: AuthName "Restricted Area" AuthType Basic

How do I securely store a .pfx password to use in MSBuild?

◇◆丶佛笑我妖孽 提交于 2019-12-18 10:55:37
问题 I need to add certificate signing to my build. Below is a sample of the working script I wrote, however it includes the password to the .pfx file. I can't keep the password in the build script. What are "best practices" or hacks that you would use in this type of situation? <ItemGroup Label="SignFiles"> <SignFilesInclude="$(FileLocation)\**\*.exe"/> </ItemGroup> <Exec Command="$(SignTool) sign /v /ac C:\MSCV-VSClass3.cer /f C:\Certificate.pfx /p Password /t http://timestamp.verisign.com

How do I implement salt into my login for passwords?

£可爱£侵袭症+ 提交于 2019-12-18 10:11:02
问题 I want to implement a salt into my login system but am a bit confused on how this is supposed to work. I can't understand the logic behind it. I understand md5 is a one-way algorithm and all of the functions that I have come across seem to hash everything together. If this is the case, how does one get the password back out for comparison? My biggest question is, how is salting a users' password safer than just hashing the password? If a database was ever to be compromised, the hash along

String to asterisk, masking password

自古美人都是妖i 提交于 2019-12-18 09:11:15
问题 I'm creating this simple login code for an ATM machine. You enter username and password and you logs in, that works just great. Since I'm not connecting to a database or an external text file and I've just got 1 user, it's just written plainly in the Java code. But when you enter the password "p4ss" I want it to be masked, so instead of seing it on the screen while typing you should see "* * * *" or " " just blank (Like when you enter pass on Linux). Currently my code looks like this: String

PHP dehashing the password

烈酒焚心 提交于 2019-12-18 08:29:29
问题 Ok. thats clear that one must store hashed password in the database but in case a user does not remembers the password and want to retrieve it back, then obviously the user wont like to have the hashed password. If the password is hashed with md5 or additional like salt and sha1 then how to retrieve back the password. 回答1: There is but one simple answer: You cannot. Well, theoretically you could, but it could take many years per password if they are long enough. After all, that is the point

htaccess doesn't work - always wrong password

拟墨画扇 提交于 2019-12-18 02:01:09
问题 I am trying to password protect a directory, and have two files in the directory which should password protected it: .htaccess .htpasswd HTACCESS: ###Contents of .htaccess: AuthUserFile /var/www/html/path/to/my/directory/.htpasswd AuthName "Protected Files" AuthType Basic Require user admin HTPASSWD: ###Contents of .htpasswd admin:oxRHPuqwKiANY The password is also admin, but no matter what password I try, it is always wrong. It immediately asks for the password again! What is wrong with this

Secure way to store password in Windows

倾然丶 夕夏残阳落幕 提交于 2019-12-17 22:24:15
问题 I'm trying to protect a local database that contains sensitive info (similar to this question, only for delphi 2010 ) I'm using DISQLite component, which does support AES encryption, but I still need to protect this password I use to decrypt & read the database. My initial idea was to generate a random password, store it using something like DPAPI ( CryptProtectData and CryptUnprotectData functions found in Crypt32.dll), but I couldn't find any example on that for Delphi My question is: how

How to protect a PDF with a username and password?

可紊 提交于 2019-12-17 21:13:04
问题 I think this is a bit complicated and probably impossible, but it would be helpful to know if there is any way to do it... Let's say I have a private teaching forum, where each user (paid account) has a username and an encrypted password, and there's a DOWNLOAD section where pdf files can be downloaded by users only. Here's the question: When the file is downloaded, it will be protected by username and password/ password only that match with the username and password of the user himself... in

Can I create password protected folder in Android?

两盒软妹~` 提交于 2019-12-17 20:42:12
问题 I would like to create a folder which is password protected. I am able to create a folder in the following way, but how can I create a password protected folder? File nf = new File("/sdcard/NewFolder"); nf.mkdirs(); 回答1: in android there is not possible but we can hide using "." at prefix otherwise Store important folder or file in internal memory. you can see you package directory following way String dir = getPackageManager().getPackageInfo("com.example.kinkey", 0).applicationInfo.dataDir;

Password Validation with Sequential Letters and Numbers - RegEx

梦想的初衷 提交于 2019-12-17 20:29:32
问题 To have customer accounts more secure, a well crafted password is good practice. This is my Regular Expression string for password validation. /^(?=.*[0-9])(?!.*?\d{3})(?=.*[a-zA-Z])(?!.*?[a-zA-Z]{3})(?=.*[~!@#$%^&*()+-?])([a-zA-Z0-9~!@#$%^&*()+-?]{8,})$/ Represents: 8 or more characters. Uppercase letter A-Z Lowercase letters a-z Special characters ~!@#$%^&*()+-? What is this Regular Expression function for this?: Must not contain up to 3 sequential letters and/or numbers. Having numbers and