passwords

ASP.NET Core add secondary password to IdentityUser

浪尽此生 提交于 2019-12-25 01:55:22
问题 I'm using ASP.NET Core 2.2 with EF Core. I have a User class which looks like this: public class User : IdentityUser { public string FirstName { get; set; } public string LastName { get; set; } } I would like to add a PIN property which will act as a secondary password for extra-secure operations. The user logs into the system, but if he wants to do something more special (like send money), he will be prompted to enter his PIN. My question is what is the most easy way to hash a string, so I

Sending/Setting a value to a Password Field on a Website

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:38:56
问题 I have written a small application that needs to log in to a website to perform some actions. The problem is that whenever I try to set the password field on the website it doesn't accept the password. I have found a way around this by using the SendKeys function. The problem with that is that it requires focus and the program requires to run in the background. Is there a way to do this? Here is an example of how you'd set the Username Field: WebBrowser.Document.GetElementById("field-username

Set password protection in UITextView

这一生的挚爱 提交于 2019-12-25 01:00:47
问题 Can i hide password in UITextView by * or any other symbol? I need to use UITextView instead of UITextField. I want to hide all characters of textView. 回答1: Using an UITextView leaves the whole job of masking the text yourself. You also need to make sure you disable copying for security reasons. Set your delegate property and handle this something on these lines: var originalText: String? func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) ->

Store and encrypt a password locally

偶尔善良 提交于 2019-12-24 20:40:30
问题 I'm writing a QML client for a service that needs authentication with a username and password. At the moment I am using a c++ plugin to encrypt and decrypt the password, but I'd like to replace that with plain QML to avoid the platform-specific binary. Not an option: hard-coding an encryption key (since that could be extracted from the package) hashing (since I need to be able to recover the password in plain-text) security by obscurity (obviously) 回答1: There is this type of question from

Encrypt User's password in seed file

女生的网名这么多〃 提交于 2019-12-24 16:26:20
问题 I need to seed an user with encrypted password and I'm not using Devise. So I tried this : user = UserManager::User.new({ :name => 'a', :surname => 'a', :email => 'a', :active => true, :password_hash => 'password', :password_salt => 'password'}) user.save But this is not right to put password_hash and password_salt like this and I found that I have to put password and password_confirmation instead user = UserManager::User.new({ :name => 'a', :surname => 'a', :email => 'a', :active => true,

Which user password parameters would make a secure Bcrypt password?

这一生的挚爱 提交于 2019-12-24 15:51:24
问题 The question relates to passwords users input while creating an account, for example, to register with some web-page. I have encountered web-sites that require users to input lower and upper-case letters with numbers and special characters... some web-sites go to an extreme, requesting users to follow strict guidelines. Is all of that really necessary? What are some of the simplest and minimal rules to follow creating a safe user password? At which point does it become a placebo? 回答1: Complex

How to present asterisk when entering a password in index.html

两盒软妹~` 提交于 2019-12-24 15:50:45
问题 Using that code : <!-- THIS IS WHERE IT ALL STARTS --> <!DOCTYPE html> <html> <head><title>Bank application</title> <link rel="stylesheet" href="./css/styles.css" type="text/css"/> </head> <body> <table class="title"> <tr><th>Web Bank application</th></tr> </table> <br/> <fieldset> <legend>Login Page - please enter your Username and Password</legend> <form action="loginPage"> Username: <input type="text" name="username"><br> Password : <input type="text" name="password"><br> <input type=

Creating a Virtual machine using Azure command line tool for linux

ε祈祈猫儿з 提交于 2019-12-24 15:23:07
问题 Trying to use Azure command line tool for linux, Below is the screen output when i am trying to create a vm. path.existsSync is now called fs.existsSync . info: Executing command vm create + Looking up image + Looking up cloud service + Creating cloud service + Retrieving storage accounts tty.setRawMode: Use process.stdin.setRawMode() instead. Enter VM 'cliusername' password: At this stage,I entered the password and hit enter but nothing more happens.Also what is the message "tty.setRawMode:

How do i change the root password in the Yocto dora bitbake system?

不问归期 提交于 2019-12-24 14:40:59
问题 I am working on the Dora branch (Poky 1.2) of Yocto and need to work on this branch only. I need to change the blank root password to some other value in order to prevent a security hole in the image during development. How do I set the root password? I would like to use the local.conf file. The method described here does not work: How to set root password on Yocto / Poky image? 回答1: Add the below line in your build/conf/local.conf or go to your meta-dir and add the below line for taking git

A function to detect common passwords and prevent user from setting it?

半城伤御伤魂 提交于 2019-12-24 14:37:56
问题 I'm working on user passwords security and one of the important things for me is to force the user to reenter a password when the password is found in most common passwords list. What would be the best way to do this? 回答1: It depends. You can create a text-file with common passwords and check if the password a user entert is in this list. One big drawback is that this file would be very large and it is nearly impossible to cover all common passwords this way. So I would recommend to write a