passwords

Webforms ASP.NET Identity system reset password

风格不统一 提交于 2019-12-11 10:04:01
问题 How can I get the password of a user in the new ASP.NET Identity system using webforms? Or how can I reset without knowing the current one (user forgot password)? 回答1: I tied this way to reset password and send it to the user if (userId != string.Empty) { string _newPass = RandomPass(); if (manager.HasPassword(userId)) { IdentityResult ir1 = manager.RemovePassword(userId); if (ir1.Succeeded) { IdentityResult ir2 = manager.AddPassword(userId, _newPass); if (ir1.Succeeded && ir2.Succeeded) { /

Secure Way of storing Passwords to APIs without OpenID?

做~自己de王妃 提交于 2019-12-11 09:56:50
问题 I asked a similar question here a while back but all the answers were offering OpenID which is nice but it doesn't work with services that require authentication that don't use it (such as EventBrite). Say I want to create an app that lists your events from event brite, and their analytics (which eventbrite includes). Any person can sign up for this service to list their events. But since EventBrite doesn't have OpenID to authenticate, I need to somehow get the user login and password to

What is the password for jenkins user during first installation?

自作多情 提交于 2019-12-11 09:43:54
问题 I want to put one Jenkins server (Ubuntu 12.04) to slave mode. But master machine must know a password for "jenkins" user on a slave machine. How do I specify the password when it has been auto-created during Jenkins installation? 来源: https://stackoverflow.com/questions/12372992/what-is-the-password-for-jenkins-user-during-first-installation

Hide UI after resigning application [duplicate]

旧巷老猫 提交于 2019-12-11 08:52:31
问题 This question already has answers here : Display a view or splash screen before applicationDidEnterBackground (to avoid active view screenshot) (8 answers) Closed 5 years ago . The question is the following: My app can be protected with a password. When the user presses home button, application resigns inactive. After reopening it, app shows "enter password" screen. But before it shows up, the initial content screen is visible for a moment. Also if, after pressing home button, user enters

How the handle/store encryption key in 2 way encryption to encrypt user password?

送分小仙女□ 提交于 2019-12-11 08:42:02
问题 I'm in a bit of a pickle, i have a server application that need to login in mail servers of users. The users give me mailserver username/password and the server application will login the mailserver and do stuff at a certain interval. This means that i do need the plain password, so i can't use security measurements to safely store the password. From research it seems i need to use 2 way encryption (server can encrypt but also decrypt). Encryption is done by using an encryption key. What is

Storing third-party passwords for reuse across pages

ⅰ亾dé卋堺 提交于 2019-12-11 08:39:12
问题 One particular web service that I am writing interfaces with an API. Each API call requires the user's username and password to be sent, no state is maintained. Ideally, when using my web service the user will enter his API username and password once, and my web service will store that information until the session ends. I understand that I should not store the API password using PHP sessions nor in a database due to security concerns. Therefore, how can I securely store and access the

Storing a password in a string before sending to database

心不动则不痛 提交于 2019-12-11 08:11:26
问题 I'm trying to learn some good practice for handling passwords. I will supply some code snippets from my project and explain what I'm worried and curious about. Lets start with the code that gets the user input, my button event code: string username = txtUser.Text; string password = Hash.EncryptString(txtPass.Text); Here my idea is that, storing a password in a string in clear text is probably bad practice? I'm aware this is probably not the solution to that (especially since I'm sending it in

SSH session without ANY authentication

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 08:09:16
问题 I have a special user, called udpate, whose shell is a special command that fetches any pending updates to our system. I'd like to be able to open an ssh session with this user without any kind of authentication (password or ppk, or anything), so if anyone wants to update a system, they could do "ssh update@<>", without having to know a password, or have a pre-shared public key on the box. Insecure, I know, but this is over a VPN, so it should not be a problem, and they will only run the

Use jenkins to inject masked password for use in code within the build

别来无恙 提交于 2019-12-11 07:39:35
问题 My aim: To use a password in jenkins which is masked after input and runtime. I only need it for my job. I can use it in my java code to login to a website. Areas I have looked at: The credentials plugin - this looks like the right area (but I'll need to get the sysadmins to add me as its locked down). Also I can't find out how you can access the output? 回答1: Have a look into the EnvInject plugin, there you can define password parameters that are masked in console output and job configuration

How to go about encrypting user login passwords for a website

断了今生、忘了曾经 提交于 2019-12-11 07:05:28
问题 I'm developing a website for a company, and they require login verification in order to use some of the services that this company provides. Using common sense, I know that I need to encrypt the user's password when saving it to a database. Not a problem, I can simply implement a hashing algorithm and store the hash (or something, I still need to troll StackOverflow to figure out the best way to save this information, but that's not what I'm asking). What I'm curious about is how to actually