passwords

Which Encryption algorithm does ProtectedData use?

纵然是瞬间 提交于 2019-12-06 02:12:22
问题 For password encryption I want to use ProtectedData . As far as I found out, this is a wrapper for CryptProtectData . The MSDN only states something vague about encryption based on user credentials and that decryption usually must be done on the same machine, if user has no roaming profile. Which encryption algorithm does it use? Is there any analysis that states whether this encryption is suiting for password storage? How else to implement a local password storage? 回答1: This MSDN article has

How to redirect data to a “getpass” like password input?

自古美人都是妖i 提交于 2019-12-06 01:39:32
问题 I'm wring a python script for running some command. Some of those commands require user to input password, I did try to input data in their stdin, but it doesn't work, here is two simple python program represent the problem input.py import getpass print raw_input('text1:') print getpass.getpass('pass1:') print getpass.getpass('pass2:') put_data.py import subprocess import getpass def run(cmd, input=None): stdin=None if input: stdin=subprocess.PIPE p = subprocess.Popen(cmd, shell=True, stdin

Javascript disable space key for change password textboxes

丶灬走出姿态 提交于 2019-12-06 01:39:10
,Hi all, var veri = { YeniSifreTextBox: $('#YeniSifreTextBox_I').val(), YeniSifreTekrarTextBox: $('#YeniSifreTekrarTextBox_I').val(), }; if (veri.YeniSifreTextBox == '' || veri.YeniSifreTekrarTextBox == '') { alert("Password Can not be empty!"); } else if (veri.YeniSifreTextBox != veri.YeniSifreTekrarTextBox) { alert("Passwords dont not match !"); } I can control password can not be empty and passwords dont not match with above codes. I want to disable to enter space key while user write password. User must never use space in keyboard inside of 2 textboxes. 1.textbox YeniSifreTextBox_I 2

Email account password storage in Java/Mysql server program

末鹿安然 提交于 2019-12-06 01:00:16
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 so it needs to be stored somewhere accessible by the program. The program uses a MySQL database to

How to obscure Scanner input text? [duplicate]

一曲冷凌霜 提交于 2019-12-05 23:45:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Hide input on command line I'm making a password security checker program and my question is odd in that my program runs just fine. What I'm wondering is whether there is any way of making text entered to the console appear as it would in a password field. i.e the word entered will appear as "****" BEFORE the user presses the return key. I am aware that JFrame has a JPasswordField method but I don't think that

C# and SQL Server: Passwords. Where to do what?

纵饮孤独 提交于 2019-12-05 23:39:37
Ok, I have an application written in C#. We have data in an SQL Server. Among that data we have user accounts, which will give access to the application. I've read around, and I know that you should salt and hash and possibly hash a bunch of times, etc. But, where do I do what? What do I send to and from the SQL Server? Exactly what do I store in the database? Do I hash it in SQL? (possibly a hash function there, like in mysql?) Do I hash and do the fancy stuff in my code? Do I send the hash to the server and compare, or do I get the hash from the server and compare in my application? What

Checking password in Android

回眸只為那壹抹淺笑 提交于 2019-12-05 22:29:46
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(savedInstanceState); setContentView(R.layout.activity_main); EditText et = (EditText)findViewById(R.id

Match jetty url-pattern to only root directory

限于喜欢 提交于 2019-12-05 22:14:58
问题 I would like to only password protect the root directory on my context path for a Jetty WebApp. My context path is /MyApp, so I would like to require a password for accessing: http://localhost:8080/MyApp But NOT for: http://localhost:8080/MyApp/cometd My current set up is below (pay attention to the url-pattern): <security-constraint> <web-resource-collection> <web-resource-name>Private Page</web-resource-name> <url-pattern>/</url-pattern> </web-resource-collection> <auth-constraint> <role

Magento customer password reset email

安稳与你 提交于 2019-12-05 21:56:06
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/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}">{{store url="customer/account

Which code set is /etc/passwd stored in? Can it be UTF-8? What limits are placed on user names?

孤街醉人 提交于 2019-12-05 21:49:52
问题 On a modern Unix or Linux system, how can you tell which code set the /etc/passwd file stores user names in? Are user names allowed to contain accented characters (from the range 0x80..0xFF in, say, ISO 8859-1 or 8859-15)? Can the /etc/passwd file contain UTF-8? Can you tell that it contains UTF-8? What about the plain text of passwords before they are encrypted or hashed? Clearly, if the usernames and other data is limited to the 0x00..0x7F range (and excludes 0x00 anyway), then there is no