passwords

Programmatically Change Expired Oracle DB Password?

扶醉桌前 提交于 2019-12-10 10:15:27
问题 Where I work, some databases get copied down from our production environment to our test environment, but the DBAs set all the passwords to expired on the (new) test DB right after the copy so that the production passwords are not known. So if I run sqlplus and connect to the test db with a specific username it immediately prompts me for a new password. Is there a way via a java app or shell scripting to automate the changing of an expired oracle 10g database password for a specific user? 回答1

Checking password in Android

狂风中的少年 提交于 2019-12-10 10:07:47
问题 I want to check the password and i have a password field for that in Android package com.example.berk4; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; public class MainActivity extends Activity implements OnClickListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

bash: does expect work with multiple password prompts?

a 夏天 提交于 2019-12-10 10:05:37
问题 I am currently using expect to pass in passwords so my scripts can run automatically without me having to sit around and type in the same password over and over again. Important: Please don't comment about how big of a security risk this is or how I should be using ssh keys, I would use those if I could, but the setup I have to work with doesn't allow it. My code looks like the following: #!/bin/sh PASS=mypassword /usr/bin/expect -c " spawn python Tools/python/install.py expect -nocase \

Magento customer password reset email

末鹿安然 提交于 2019-12-10 09:51:07
问题 My situation: I have 3 websites that named: websiteA websiteB websiteC all in one magento installation. Customer data is shared in global view. When a customer(registered on websiteA) request a password reset on websiteB, he will receive a password reset email that direct him to websiteA to reset password. I don't want that. I want the customer to receive a password rest email that direct him to websiteB. Code I found in password reset email: <a href="{{store url="customer/account

Hide Password Content in Source Code

荒凉一梦 提交于 2019-12-10 09:43:40
问题 Does anyone know how to hide the password contents in the source code of a j2me program? i.e. so people cannot see "DBT" as password who read the source code. public void validateUser(String user, String Password) { if (user.equals("N0203251") && Password.equals("DBT")) { switchDisplayable(null, getContinue()); } } 回答1: As other have said. Store the hash, though you still need to use a strong password or an automated guesser will find the one you're using. But, be warned: If your attacker has

Safety benefits of the Password in WPF PasswordBox not being bindable?

浪尽此生 提交于 2019-12-10 09:37:50
问题 I just stumbled across the fact that the Password property of WPF PasswordBox es is not bindable for security reasons , which makes using them quite cumbersome in a MVVM context. Answers like https://stackoverflow.com/a/1493330/3198247 suggest that otherwise, the password might be stored in plain text in memory at runtime, which would be a bad idea since it could potentially be read by malware. However, I still don't seem to understand the reason in general or that answer. There, it says

Password hashing with true random salt or username salt plus pepper?

余生长醉 提交于 2019-12-10 09:05:47
问题 Consider the following two methods: hashedPassword = hash(trulyRandomSalt + password) Where hashedPassword and the trulyRandomSalt are stored in the database. hashedPassword = hash(applicationConstantPepper + uniqueUserName + password) Where the hashedPassword and uniqueUserName are stored in the database and the applicationConstantPepper is stored in the application config. Here, the uniqueUserName acts as a salt which are usually email addresses. I have read this question which has a lot of

Store passwords required by a linux daemon

懵懂的女人 提交于 2019-12-10 05:34:06
问题 I have written a linux daemon that will be (and must be) running as root. When it runs, there will not necessarily be anyone logged in as it is started by cron. That daemon needs to store some urls, uids and passwords as it connects to other servers (such as dropbox, google, windows servers etc). Q: What is the best place and method to store those passwords. I can't store hashes as I need the original url/uid/pwd to connect to the remote services. There are only two options that I can see: a)

Properly transmitting and securing users' passwords for a web app

為{幸葍}努か 提交于 2019-12-10 04:24:32
问题 I'm working on a web app for my Masters project. It's a system for professors to manage student projects, and it uses Java for the server-side code, HSQLDB for the database, and JSPs for the presentation layer, and it runs on tomcat. The data that will be stored doesn't include any sensitive information (student ID, financial info, nothing like that) but usernames and passwords are a requirement, so I want to protect the passwords themselves in the event that a student uses a password for my

Why do so many sites disallow the use of non-alphanumeric characters in passwords?

纵饮孤独 提交于 2019-12-10 03:28:27
问题 When going through registration, a lot of sites will disallow the use of symbols in passwords. This drives me up the wall from a usability perspective since I include multiple symbols in all my passwords, and as a programmer that deals with web authentication from time to time, I can't figure out why it wouldn't be allowed. Am I missing something? Are they worried about SQL injection? Don't want to deal with escaping characters? Or is there something with non-Latin-alphabet characters that