passwords

Mask Passwords with Logback?

☆樱花仙子☆ 提交于 2019-12-03 00:29:42
We currently generically log all XML documents coming in and going out of our system, and some of them contain passwords in the clear. We would like to be able to configure the logback logger/appender that is doing this to do some pattern matching or similar and if it detects a password is present to replace it (with asterisks most likely). Note we don't want to filter out the log entry, we want to mask a portion of it. I would appreciate advice on how this would be done with logback. Thanks. The logback version 0.9.27 introduced replacement capability . Replacements support regular

How to decrypt the password generated by wordpress

£可爱£侵袭症+ 提交于 2019-12-03 00:20:53
I am using a wordpress site. I just want to know , How to get a plain text from encrypted password(stored in wordpress database). I used the $wp_hasher->CheckPassword($plain_password, $password_hashed) to check the password is correct or not. But this time i would like to know how to get plain text. You will not be able to retrieve a plain text password from wordpress. Wordpress use a 1 way encryption to store the passwords using a variation of md5. There is no way to reverse this. See this article for more info http://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash

High quality, simple random password generator

我怕爱的太早我们不能终老 提交于 2019-12-03 00:12:31
问题 I'm interested in creating a very simple, high (cryptographic) quality random password generator. Is there a better way to do this? import os, random, string length = 13 chars = string.ascii_letters + string.digits + '!@#$%^&*()' random.seed = (os.urandom(1024)) print ''.join(random.choice(chars) for i in range(length)) 回答1: The difficult thing with passwords is to make them strong enough and still be able to remember them. If the password is not meant to be remembered by a human being, then

Script Kerberos Ktutil to make keytabs

浪子不回头ぞ 提交于 2019-12-02 23:51:53
I want to make a script that will generate the a keytab using ktutil. When running the script I want to use [user]$ script.sh PASSWORD #script.sh echo "addent -password -p PRINCIPAL -k 1 -e aes256-cts-hmac-sha1-96" | ktutil Ktutil than needs a password, here I want to use the PASSWORD argument from above. How would I pass the password arguement? With GNU bash: user="PRINCIPAL" pass="topsecret" printf "%b" "addent -password -p $user -k 1 -e aes256-cts-hmac-sha1-96\n$pass\nwrite_kt $user.keytab" | ktutil printf "%b" "read_kt $user.keytab\nlist" | ktutil Output: slot KVNO Principal ---- ---- ----

How to create login in ionic 2 with show/hide password

拈花ヽ惹草 提交于 2019-12-02 23:42:55
I wanted to create a design like this using ionic 2 -> https://codepen.io/Floky87/pen/bVopyZ Which is a login functionality that has a hide/show password. Here's my HTML code <ion-header> <ion-navbar> <ion-title>Login</ion-title> </ion-navbar> </ion-header> <ion-content padding> <ion-item> <ion-label floating primary>Username</ion-label> <ion-input type="text"></ion-input> </ion-item> <ion-item> <ion-label floating primary>Password</ion-label> <ion-input type="password"></ion-input> <ion-icon name="eye" item-right (click)="showHide()"></ion-icon> </ion-item> </ion-content> And Here's the

Need help… how to add md5 to password field in php?

我们两清 提交于 2019-12-02 23:24:18
问题 i looking some help and nice attention here.. i bought some php script many years ago and now no suport anymore... i just want to add md5 to password field.. here my form: <?php $SQL = "SELECT * from USERS WHERE USERNAME = '$_SESSION[username]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result ); include 'menu.php'; ?> <FORM METHOD="post" ACTION="?page=query_client"> <INPUT TYPE="hidden" NAME="controller" VALUE="USERS~update~account_details&up=1~<?php echo $row[ID]; ?>">

MongoDB: set user/password to access to db

ぐ巨炮叔叔 提交于 2019-12-02 23:16:43
I'm trying to set password for mongodb to prevent access to db with empty login and pass (set by default). I'm statring mongo server: sudo ./mongod Starting client: ./mongo Setting password: use admin db.addUser("root", "root") exit The output is: MongoDB shell version: 2.2.0 connecting to: test > use admin switched to db admin > db.addUser("root", "root") { "user" : "root", "readOnly" : false, "pwd" : "2a8025f0885adad5a8ce0044070032b3", "_id" : ObjectId("50c90b94e28c41a388104f64") } > exit Hoever, wheh I try to auth with empty credentials (I use mViever admin UI), it still works. Otherwise,

generate a secure password in javascript

笑着哭i 提交于 2019-12-02 23:04:21
What's the quickest way to generate a secure password in javascript? I want it to contain at least 1 special character, and 2 mixed case. Must be at least 6 characters long. Here are some useful String functions: String.prototype.pick = function(min, max) { var n, chars = ''; if (typeof max === 'undefined') { n = min; } else { n = min + Math.floor(Math.random() * (max - min + 1)); } for (var i = 0; i < n; i++) { chars += this.charAt(Math.floor(Math.random() * this.length)); } return chars; }; // Credit to @Christoph: http://stackoverflow.com/a/962890/464744 String.prototype.shuffle = function(

What are the best practices to encrypt passwords stored in MySql using PhP?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 22:54:52
I am seeking advice on how to securely store passwords in MySQL using PHP. Overlooking the limitations of PHP itself, I want to know more about salting, hashing, and encrypting these bad boys. Obviously people will continue to use weak passwords unless forced to do otherwise, but it's how I am storing them that is important to me. My user's passwords are far more important to me than the database itself, and as such I want to keep them in such a way that it will be painstaking and monotonous for any script kiddie trying reverse. Obviously with due diligence just about anything can be defeated,

Is it safe to store passwords hashed with MD5CryptoServiceProvider in C#?

元气小坏坏 提交于 2019-12-02 22:42:35
We are storing hashed passwords in a database table. We prepend each password with a random salt value and hash using MD5CryptoServiceProvider. Is this safe? I have heard MD5 was "broken". If not, can you recommend an alternate hash method to use (specific .NET framework class)? I think SHA256, SHA512 are more safe at this moment :) See wiki The security of a hash function mainly comes from the length of its output (message digest): a longer digest gives greater collision resistance. The birthday paradox tells us that on average you'd expect to find a collision from a work function of the