password-protection

How to create a asp.net membership provider hashed password manually?

纵然是瞬间 提交于 2019-11-27 05:37:53
问题 I'm using a website as a frontend and all users are authenticated with the standard ASP.NET Membership-Provider. Passwords are saved "hashed" within a SQL-Database. Now I want to write a desktop-client with administrative functions. Among other things there should be a method to reset a users password. I can access the database with the saved membership-data, but how can I manually create the password-salt and -hash? Using the System.Web.Membership Namespace seems to be inappropriate so I

Password storage in source control

▼魔方 西西 提交于 2019-11-27 05:32:02
问题 We store all our application and db passwords in plain text in source control. We do this as our build/deploy process generates required configuration files and also does actual deploys that require these passwords (ie: running sql against a database requires you logon to the db using valid credentials). Has anyone had a similar need where you were able to implement this type of functionality while not storing the passwords in plain text? 回答1: If your plan is to store all the code and

Way to securely give a password to R application from the terminal?

五迷三道 提交于 2019-11-27 03:56:32
Does R have a function that allows a user to provide a password securely, such as Python's getpass module? (see http://docs.python.org/library/getpass.html for an example of what I mean) The problem is that R does not have functions to control the terminal it is running in (something like Rncurses ); probably this is due to portability issues. Some time ago I was struggling with the same problem and I ended up with a function using TclTk: getPass<-function(){ require(tcltk); wnd<-tktoplevel();tclVar("")->passVar; #Label tkgrid(tklabel(wnd,text="Enter password:")); #Password box tkgrid(tkentry

How to unmask a JavaFX PasswordField or properly mask a TextField?

不羁岁月 提交于 2019-11-27 03:55:33
问题 In a UI of mine, I have a PasswordField like so ( urm the one at the bottom! ): I want a user to be able to check the checkbox you see in the picture and have all "secret" password characters displayed. Not much different from the option we get from many modern password-asking UI:s floating around. However, I cannot find anything in the JavaFX API that let me do that? If my worries hold true, then I would like to use a TextField that display the last key pressed for only half a second or

Sheet protection: UserInterFaceOnly gone

一个人想着一个人 提交于 2019-11-27 02:09:56
In VBA Excel if I protect sheets with UserInterFaceOnly:=True option after I close and open the file again the UserInterFaceOnly mode is not active, only Password protection. The code: ActiveSheet.Protect Password:="myPassword", UserInterfaceOnly:=True Why? carlossierra You can't do it without reapplying UserInterfaceOnly:=True after reopening the workbook. Taken from Excel's Vb protect method reference: If you apply this method with the UserInterfaceOnly argument set to true and then save the workbook, the entire worksheet (not just the interface) will be fully protected when you reopen the

Password protecting a directory and all of it's subfolders using .htaccess

*爱你&永不变心* 提交于 2019-11-27 01:29:24
I am trying to password protect a subdomain and all of it's subdirectories and files, but my knowledge on the matter is very limited, how can I go about doing that? It's a simple two step process In your .htaccess put AuthType Basic AuthName "restricted area" AuthUserFile /path/to/the/directory/you/are/protecting/.htpasswd require valid-user use http://www.htaccesstools.com/htpasswd-generator/ or command line to generate password and put it in the .htpasswd Note 1: If you are using cPanel you should configure in the security section "Password Protect Directories" EDIT: If this didn't work then

SHA2 password hashing in java

强颜欢笑 提交于 2019-11-27 01:24:30
问题 I'm trying to hash some passwords with SHA2. Where can I get a snippet of java code for make that? I have seen that post but I have something missing: SHA2 password storage with Java Mac mac = Mac.getInstance("HmacSha256"); SecretKeySpec secret = new SecretKeySpec(key.getBytes(), "HmacSha256"); mac.init(secret); byte[] shaDigest = mac.doFinal(phrase.getBytes()); String hash = ""; for(byte b:shaDigest) { hash += String.format("%02x",b); } The phrase is the String I want encode right? And what

How to remove .htaccess password protection from a subdirectory

十年热恋 提交于 2019-11-26 23:57:32
I have password protected my entire website using .htaccess but I would like to expose one of the sub directories so that it can be viewed without a password. How can I disable htaccess password protection for a sub directory? Specifically what is the .htaccess syntax. Here is my .htaccess file that is placed in the root of my ftp. AuthName "Site Administratrion" AuthUserFile /dir/.htpasswd AuthGroupFile /dev/null AuthName secure AuthType Basic require user username1 order allow,deny allow from all RageZ You need to create a new .htaccess file in the required directory and include the Satisfy

Removing the password from a VBA project

旧时模样 提交于 2019-11-26 22:28:43
问题 How can I programmatically remove a (known) password from an Excel VBA project? To be clear: I want to remove the password from the VBA Project, not the workbook or any worksheets. 回答1: This has a simple method using SendKeys to unprotect the VBA project. This would get you into the project, so you'd have to continue on using SendKeys to figure out a way to remove the password protection: http://www.pcreview.co.uk/forums/thread-989191.php And here's one that uses a more advanced, somewhat

How long should my password salt be, and is SHA-256 good enough?

安稳与你 提交于 2019-11-26 21:48:02
问题 I'm in the process of creating a gaming community site that I'm aiming to release to the public soon. Currently, I'm working on passwords and logins. I've only used MD5 before, but I've read about password safety and heard that salting is currently the way to go. Here's my plan: Every user has their own unique salt of 12 random characters (#/¤& etc), stored in the users table. The salt is hashed (using SHA-256) along with the password on registration, and re-hashed on login. How does this