passwords

Android password edit text showing text

浪尽此生 提交于 2019-12-08 16:22:48
问题 I have used one Edittext with attribute android:inputType="textPassword" . But when I type some text in it, text is getting visible character by character before changing to solid bullets. How can I make the text invisible as the user inputs the text. Please help me. 回答1: Try to add EditText attribute android:inputType="text" And also add programmatically edt_password.setTransformationMethod(new PasswordTransformationMethod()); 回答2: i have used the below in my application and text does not

Hide/replace when typing a Password (C#)

谁说胖子不能爱 提交于 2019-12-08 15:24:40
问题 Ok, So I am new to C#, but already learned a bit. But I have one question, how do I Replace Characters that are typed into a console with "*" or just hide them completely? var pw = "eric123"; Console.WriteLine("Password: "); var value = Console.ReadLine(); if (value == pw) { Console.WriteLine("Permitted, Play online? (Y/N)?"); var getGameOnlineStatus = Console.ReadLine(); //Rest Of the Code is just for me :) Any Help would be appreciated! 回答1: found it here Password masking in C# console

Is there a way to crack the password on an Excel VBA Project?

怎甘沉沦 提交于 2019-12-08 15:16:49
问题 I've been asked to update some Excel 2003 macros, but the VBA projects are password protected, and it seems there's a lack of documentation... no-one knows the passwords. Is there a way of removing or cracking the password on a VBA project? 回答1: You can try this direct VBA approach which doesn't require HEX editing. It will work for any files (*.xls, *.xlsm, *.xlam ...). Tested and works on: Excel 2007 Excel 2010 Excel 2013 - 32 bit version Excel 2016 - 32 bit version Looking for 64 bit

When I go to Localhost and try the username and the password it tells me that is an error?

两盒软妹~` 提交于 2019-12-08 14:09:05
问题 When I go to Localhost and try the username and the password it tells me that is an error? why? 回答1: It looks entered username/password or both are not matching with the database table my_db. Reasons : Localhost means the db is getting refereed in local. So in your local database under my_db table there is no user exists with the given username and password. May be that data is valid in remote database server. Solution : 1. Take a dump from remote database and put in your localhost so that

Generate random passwords in shell with one special character

一个人想着一个人 提交于 2019-12-08 13:25:31
问题 I have the following code: </dev/urandom tr -dc 'A-Za-z0-9@#$%&_+=' | head -c 16 which is randomly generating passwords perfectly. I want two changes: It should only contain one special character listed above It should choose a random length I tried with length = $(($RANDOM%8+9)) then putting length as </dev/urandom tr -dc 'A-Za-z0-9@#$%&_+=' | head -c$length but got no positive result. 回答1: #! /bin/bash chars='@#$%&_+=' { </dev/urandom LC_ALL=C grep -ao '[A-Za-z0-9]' \ | head -n$((RANDOM % 8

Password Expiration notification vbscript

本小妞迷上赌 提交于 2019-12-08 12:33:21
I got great help from the link below, I have made a few changes but I can not get it to work, any thoughts? What it is supposed to do is go get the domain policy and check the password expiration information, if it is within the 14 day time frame it shows a popup (it works if I use msgbox) I want to use a company logo with the text, this is the problem area. PwExpChk.vbs can I add a company logo? '========================================== ' Check for password expiring notification '========================================== ' First, get the domain policy. '====================================

Handling Password Authentication over a Network

試著忘記壹切 提交于 2019-12-08 12:25:35
问题 I'm writing a game which requires users to log in to their accounts in order to be able to play. What's the best way of transmitting passwords from client to server and storing them? I'm using Python and Twisted, if that's of any relevance. 回答1: The best way is to authenticate via SSL/TLS. The best way of storing passwords is to store them hashed with some complex hash like sha1(sha1(password)+salt) with salt. 回答2: If you want plug'n'play solution, use py-bcrypt for storing passwords (http:/

web2py check password in form

别等时光非礼了梦想. 提交于 2019-12-08 12:00:55
问题 I am trying to create a change password form in web2py. I am using db.auth_user table. I want to create a form with fields ['current_password', 'new_password', 'repeat_password'] Form should give a warning to user if the password is not entered correctly. My code is: request.vars.current_password = request.vars.current_password if request.vars.current_password else 'xxx' user_password_form = SQLFORM.factory(Field('current_password', 'password', requires=IS_EQUAL_TO(db(db.auth_user.id == auth

CakePHP: Edit Users without changing password

与世无争的帅哥 提交于 2019-12-08 11:56:57
问题 How do I save users in my CakePHP app without requiring them to change their password each time? I have code in place to check the two password fields and apply some verification rules, which works great for registration and for changing passwords in the 'edit' view. However, how do I skip the verification rules and saving the password if the password fields are left empty in the Edit view? Obviously, I don't want to skip this requirement on registration. register.ctp and edit.ctp: echo $form

Is using a 'salt' all that good?

被刻印的时光 ゝ 提交于 2019-12-08 11:50:24
问题 I don't claim to be an expert in security but it seems to me that adding a salt doesn't really make a huge difference. For example, if the password of the user is john1970 and the salt is 123456, this means that the password is 123456john1970, while this makes things harder for an attacker (if using a dictionary attack, e.g. rainbow tables), the attacker could very possibly guess that the first part is a salt. I find using non-standard methods (like XORing with some key or applying a few