From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: better than read-hide-char Date: Wed, 1 Aug 2018 09:48:39 -0600 Organization: XCP-1 Message-ID: <829cc468-873a-39bb-cce9-29dffbf4d1d1@lanl.gov> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1533138512 19893 195.159.176.226 (1 Aug 2018 15:48:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 15:48:32 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 17:48:28 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fktMR-00053l-V2 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2018 17:48:28 +0200 Original-Received: from localhost ([::1]:41815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fktOY-0000yH-P7 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2018 11:50:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fktNm-0000wy-B6 for emacs-devel@gnu.org; Wed, 01 Aug 2018 11:49:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fktNh-0002y4-P2 for emacs-devel@gnu.org; Wed, 01 Aug 2018 11:49:50 -0400 Original-Received: from proofpoint8.lanl.gov ([204.121.3.47]:50176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fktNh-0002u9-ER for emacs-devel@gnu.org; Wed, 01 Aug 2018 11:49:45 -0400 Original-Received: from pps.filterd (proofpoint8.lanl.gov [127.0.0.1]) by proofpoint8.lanl.gov (8.16.0.21/8.16.0.21) with SMTP id w71FlECM025814; Wed, 1 Aug 2018 09:48:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lanl.gov; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=lanl; bh=8ns/YpT2p+3HCpTaHfAx4JyZngnee6xB1yjbjvbSMSo=; b=kqZpZOMdFACq6q4o5Q0Gzg7FcLjZt/YNTHUNbM/DJxA4EG0Pj9qt1c3xgzz61qlVNYfH wjeZNigp+4qrwUqHIszNgPy79wEZ7aW3M81hdIrrvJV/SyI7zoqZjK3cedVY/M67fAS4 iw70ugEUsiRRN+MbRQYsr8clBrf8NLvQ+3eDj4pg7eVUwDlgM0WWQGgU6hd/rq8UHR/U WHy97+6ZmanRvKezUF7umZCmlpgjhkTXU6AWkepxZ7NfdC6EjvucLTUVzMTOXzcpGvGB ICk77rPWL32MsODrEfIp1SitjhMkBlfKjUrkxzL/jYTDpzn3ZDQvtL2WIkRb2yCUq+8o +g== Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint8.lanl.gov with ESMTP id 2kj85hfwbs-1; Wed, 01 Aug 2018 09:48:40 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 2AF82F03B98; Wed, 1 Aug 2018 09:48:40 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from bismuth.lanl.gov (bismuth.lanl.gov [128.165.246.103]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 5F27AF03B91; Wed, 1 Aug 2018 09:48:39 -0600 (MDT) In-Reply-To: Content-Language: en-US X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-08-01_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=723 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1808010163 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 204.121.3.47 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228086 Archived-At: > Sure. Another option would be the patch below. > BTW, for those who like to have their password sanity-checked locally > before they press RET, it even displays some kind of short hash ;-) Doesn't displaying even 16 bits of any hash of each prefix of the password leak those prefixes, each guided by the last? Here is a lookup table based on the first 12 bits of the MD5 hash of each ASCII printing character: 01a # 021 X 03c s 0bc % 0cc a 0d6 C 0fb ] 167 6 21c Z 251 h 26b + 28d \ 2db l 336 - 338 * 359 ' 363 j 3a3 E 415 y 43e = 44c P 45c 9 4a8 c 4b4 r 4c6 U 4c7 ~ 505 . 518 @ 520 V 524 < 57c Y 5db S 61e W 666 / 696 M 6cf & 6f8 m 721 769 q 7b7 u 7b8 n 7e6 ^ 7fc A 800 F 815 [ 827 d 833 ` 838 p 84c ( 853 : 865 i 8ce k 8d9 N 8f1 7 8fa f 903 ! 92e b 937 ) 9d5 B 9dd x 9e3 v 9ee ; a5f K a87 4 b14 _ b15 " b2f g b99 | b9e T c0c , c1d H c3e $ c4c 1 c81 2 c9f 8 cbb } ced > cfc 0 d14 ? d20 L d95 o dd7 I dfc G e16 e e1e R e35 t e4d 5 ecc 3 f09 Q f12 w f18 O f62 D f95 { fba z ff4 J And, supposing the first hash is c3e... (i.e., the first character is $), here's the next table: 033 $2 06d $1 099 $3 0b3 $J 0bf $( 0d5 $e 0f5 $O 115 $@ 134 $T 141 $[ 172 $4 19c $' 1d0 $% 1dc $| 20c $S 20f $d 213 $= 24d $l 2a0 $p 2a1 $Q 2fb $, or $H 30b $t 359 $. 36a $y 36b $/ 39a $Y 3cb $s 3e3 $c 3e4 $D 459 $+ 474 $X 481 $- 4f3 $7 52d $a 588 $$ 601 $h 620 ${ 6b5 $P 6b6 $f 6bf $Z 6c0 $` 71e $C 798 $F 7a4 $I 7d4 $R 7dc $~ 867 $K 86c $8 870 $5 872 $x 884 $! 89f $M 926 $> 934 $L 953 $z 993 $: a09 $k a0f $& a16 $i a3d $v a7b $j aa7 $r ae9 $o b05 $] b3e $6 b89 $A or $? bea $" c4a $u c6a $* c6e $ d0a $0 d38 $U d3f $w d72 $9 da3 $b dd9 $W de8 $B e19 $# e25 $N e31 $^ e33 $G e4a $n e4d $E e6e $\ e77 $V eb6 $q edc $_ f08 $; f46 $g f52 $m f78 $< fa1 $} fc0 $) The two collisions are resolved by the remaining 4 bits displayed by that patch. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.