passwords

Python: Execute scp, stdin for password not working

僤鯓⒐⒋嵵緔 提交于 2019-12-07 12:40:36
I'm trying the following from subprocess import Popen, PIPE Popen(["scp", "-B","user@url:file", "."], stdin=PIPE, shell=False).communicate(input="password") But I still get the password promt, and no password is sent. I know I can use scp with keys, but this is not what I need. Any help? scp interacts with the terminal directly, rather than reading from STDIN , You can't pass the password via a pipe, it security matter for scp and it's the same for sftp, ssh. you can try it in you terminal like this (and it will not work): echo "password" | scp me@localhost:test . As others have said, scp (and

Email account password storage in Java/Mysql server program

孤街浪徒 提交于 2019-12-07 11:52:41
问题 I am in a sticky situation where I am writing an application that sends out emails to clients using an email account of my company. The issue here is that I have to have the password for the account to make the mail service on the server send out emails from that account. I know that passwords should never be stored in plain text, particularly ones that are used for an important email account. The dilemma here is that the program NEEDS to have the actual plain text password to send the emails

How to read LDAP password policy in Java

久未见 提交于 2019-12-07 11:25:51
问题 Can i read user password policy from LDAP, like when it expires or more details like password strength (minimal length etc.) ? I need these information so I can use the same policy for users kept in my database. My java application require that users from the database have to be synchronized with domain. 回答1: If you want to get the password policy through LDAP queries try this without PSO policy in your current domain String searchDomain= "DC=company,DC=ORG"; String ldapQuery = "(&

How to enter password automatically in Webview

落爺英雄遲暮 提交于 2019-12-07 10:32:57
问题 I am new to Java and Android and I got a question. I think the solution is maybe very easy but I couldn't solve it. I created an application with a WebView the thing is I want that the webview enters username and password automatically so that the user is already logged in when he starts the application. I googled it and found something like that but it does not work @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

Symfony sfGuardPlugin password recovery

倾然丶 夕夏残阳落幕 提交于 2019-12-07 09:56:26
I am supporting a site built on symfony. There were problems regarding some kind of "admin page". While not knowing much about the whole thing by reading the logs and comparing recent backups I think I was able to fix the issue (some developer removed a route, but did not fix a template). I do not have admin password to the site, but have root access to the server and super access to the database (in this case postgres). Can you help me how to create myself an account without knowing the current passwords? Disclaimer: I do not have much knowledge with PHP's OOP interface as I am not a

Hiding or Encrypting Password in log4j.properties file SMTP Appender

青春壹個敷衍的年華 提交于 2019-12-07 08:32:26
问题 I am using custom gmail smtp appendar for sending error logs from my gmail account. Following the instructions: http://www.tgerm.com/2010/05/log4j-smtpappender-gmail-custom.html - Everything works great. Except one thing: In my log4j.properties: I don't want to type my password "log4j.appender.EMAIL.SMTPPassword=somepass" so that I can share this project with my team mates. Does anyone have a suggestion ? Below is log4j.properties part: log4j.appender.EMAIL=com.tgerm.log4j.appender

Clientside password hashing

两盒软妹~` 提交于 2019-12-07 08:02:39
问题 A friend of mine and me are having a discussion about whether we should pre-hash the passwords of the users of our webapp before sending it to our servers. I know that there are multiple questions that already handle this topic but they're all about transferring it securely to the server. Our idea is not about the transfer security (we use SSL) we want to hash clientside to prevent that the "real" passwords reach our server. The idea came as Twitter announced their bug that caused passwords

CakePHP 3.0 - Compare Database Password with the old password while changing password

℡╲_俬逩灬. 提交于 2019-12-07 07:29:01
问题 I am working on CakePHP 3.0 and I would like to compare the database password with the old password entered in the form in "Change Password" functionality. But I am not able to do so since the password is hashed and the hashed password is different every time even if we use the same password. Please help me in this. Thanks in advance, Melee 回答1: I would do this in the validator of your UsersTable. src/Model/Table/UsersTable.php $validator ->notEmpty('current_password') ->add('current_password

How to secure password in code c# email client

北城以北 提交于 2019-12-07 07:28:59
问题 I am building a website for my brother's company. The most important element on the website is the mail function. It is important that visitors can send emails to my brother using that system. So I used this code: message.From = new MailAddress("someemail@somedomain.com"); message.To.Add(new MailAddress("emailaddress")); message.CC.Add(new MailAddress("emailaddress")); SmtpClient client = new SmtpClient("smtp.live.com", 587); client.EnableSsl = true; client.Credentials = new System.Net

Security: How should I store (“Remember”) a user's username and password for future use?

有些话、适合烂在心里 提交于 2019-12-07 07:05:12
问题 I need my application to be able to remember a user's username and password so that in the future the user doesn't have to enter it again. Obviously, in order to "remember" the username and password for future use, this means my application will have to store the username and password to disk in some way. How is this typically done? I know that Pidgin stores the username and password in plain text. I'd like to avoid this if possible. Is there a better way? EDIT : The platform I'm targeting is