passwords

How do I securely store and set password for use by SmtpClient class?

邮差的信 提交于 2019-12-24 03:18:27
问题 I am writing a C# class that needs to send SMTP emails. I found code in this SO question which gave me what I needed to send the email (SO Question) For convenience, here is the code I am modifying from an answer to the above question: using System.Net; using System.Net.Mail; var fromAddress = new MailAddress("from@gmail.com", "From Name"); var toAddress = new MailAddress("to@example.com", "To Name"); const string fromPassword = "fromPassword"; const string subject = "Subject"; const string

How to match username with encrypted password on login (java)

痞子三分冷 提交于 2019-12-24 02:47:27
问题 I have stored username and encrypted password in oracle DB. How I will match the username with encrypted password on login? For example: username = abcd, encrypted password = #a11jsuy*&^ (actual password = abcd). When user want to login at that time he will use username = abcd and password = abcd. But the DB stores encrypted password = #a11jsuy*&^. How to match the password with encrypted password and with the username to login? I am using java and JSF. Any suggestions please. Thanks in

Ruby on Rails: Devise - password change on first login

安稳与你 提交于 2019-12-24 02:13:55
问题 I have an app that allows users to enter projects into a database, where they can search for them later. Each user has their own login, which will be given out by a system admin. When the user logs in for the first time, I want the usual homepage to show a "Change your password" view, so that the user has to change their password before using the app. I have set up a pass_change boolean column in the User table, which is false when a new user is created. At the moment, when the user logs in

Password protected excel using NPOI

北城以北 提交于 2019-12-24 01:27:19
问题 i have a .net c# application in which im downloading one excel file on button click. the code im using is using NPOI.HSSF.UserModel; using NPOI.HSSF.Util; using NPOI.SS.UserModel; then some codes. HSSFWorkbook book = new HSSFWorkbook(); var sheet = book.CreateSheet("StatusReport"); some code for formatting the excel,then some code for downloading the excel. HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Charset = "utf-16"; HttpContext.Current.Response.ContentEncoding =

GAE authenticate to a 3rd party site

孤者浪人 提交于 2019-12-24 01:18:36
问题 I need to authenticate securely to a third party site for a SSL REST api call. I have the API call part working but I want to save the third party credentials in my app engine datastore, or maybe somewhere else? I have no idea how im supposed to do this. The SSL call looks like: credentials = base64.encodestring('%s:%s' % (username, password))[:-1] request = urllib2.Request(accounts_url) request.add_header("User-Agent", user_agent) request.add_header("Authorization", "Basic %s" % credentials)

Password strength checkers that take into account Moore's Law? [closed]

烈酒焚心 提交于 2019-12-24 00:53:39
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I was going about doing my annual password change on my accounts and tried various sites (microsoft, lastpass, etc) to try out

email sent without putting the password into the code

大兔子大兔子 提交于 2019-12-24 00:51:54
问题 Is there anyway to get an email sent without putting the password into the code ? There are many email api-s that enables to send an email with entering the username and password. Example sendEmail("myemail@gmail.com","mypass","subject","msg body"); Is there any way around the problem with hard-coding the password in code ? 回答1: You have three options to send email: You include your email and password into the code and in this case the application will send emails from this email address. You

creating password field in oracle

那年仲夏 提交于 2019-12-24 00:44:18
问题 What is the use of "The Secure External Password Store"? And can I create password field in my Oracle table using "The Secure External Password Store"? Or how can I create password field in my Oracle table without using "The Secure External Password Store"? 回答1: One method without using "The Secure External Password Store" (whatever that may be) is to add a RAW(16) column to the table to store a hashed username and password: alter table mytable add password raw(16); Then store the hashed

How to hide .env passwords in Lumen when you leave debug as false?

心已入冬 提交于 2019-12-23 23:27:00
问题 How can I hide my passwords and other sensitive environment variables on-screen in Lumen (Not Laravel)? Sometimes we either forget or test smth in development and make debug=false in the .env file. We maybe don't want other people to see such information even in development phase. Also for some people who don't know this, if an exception is thrown while opening a page or making a request, everything that is in the .env file is shown in the browser, including db passwords etc - "and this is

Comparing input password to stored hashed password in a web app

喜夏-厌秋 提交于 2019-12-23 22:17:07
问题 After reading this beautiful question: Why is char[] preferred over String for passwords?, I'm curious as to how this applies to servlet based web applications. Say your UI has some input field for the password, the password will be retrievable with request.getParameter("passwordFieldName") which returns a String . Even if you then convert it to a char[] , you have to wait for GC to clear the String object. Also, many of the Encryption/Hashing libraries I'm looking into using for password