密碼強度

密碼強度量度一個密碼有幾難畀未有受權嘅人或電腦估到。 

據啲密碼幾難估，將佢哋分做「弱」、「破得」同埋「強」。所謂「強弱」呢個字係相對嘅，只係響某特定密碼系統之內至有意義。 一串密碼嘅質素有賴成套密碼系統點限制任何人估中個密碼，無論係個用户嘅朋友定係部電腦亂撞嗮百萬計嘅可能性。響密碼學入面，呢幾個字都有咁上下準確意思。但係，就算一串「強」密碼都可能被人偷、呃、逼供出來、用鍵盤收集、傳送途中截聽、或用其它方法發現。

廢密碼 
廢密碼係話個密碼好短，好簡單，好易畀暴力破解到。例如出世日期、電話冧、證件冧、自己人名、或用戶名、重有基於呢類詞彙基礎上嘅幾個組合、寵物名，都係可以通過其他渠道搵到。重有係連續嘅數字或重複、帶順序嘅英文字，睇落去好似好難被破解但好易俾黑客估到嘅組合。

常用詞彙版
以下呢啲常用詞彙版嘅密碼都唔好用，因為呢啲都係主流密碼，太簡單，若果黑客用工具去破解，一秒內就搞掂。

以上呢啲密碼大多數都俾全球最權威嘅密碼研究部門研究過兼入咗全球最危險嘅密碼排行榜。

個人信息版
雖然其他人唔知自己啲個人信息係乜，但喺撞庫攻擊入面，最先會用個人信息嚟做密碼。尤其係出世日期或生日最先用到。雖然個人信息比較好記，但特別易破解，因為黑客可以通過其它渠道嚟獲得其他人嘅個人信息。

亦有啲人好鍾意用手機冧、郵箱、電話冧、身份證冧、QQ、msn、facebook、twitter、微博等社交網絡戶口等個人信息有明顯聯繫啲嘢做密碼，不過家下好多人都係人手一臺智能電話，一旦俾其他人知個戶口係乜就好易估到密碼出嚟。

戶口版
攞戶口嚟做密碼相當於老虎頭上捉蝨乸。因為黑客可以用隨機估嘅方法入面，都有戶口份。咪以為最崖广嘅地方係最安全。

睇落去好似好難估，但好易被估到嘅組合版
遇到以下呢啲密碼要小心喇：

呢啲密碼雖然睇落去好似好難估，但好易俾黑客估到出嚟。因為佢哋隻隻都係鍵盤隔籬個掣。

字典版
喺密碼分析學同電腦安全入面，有嘅講法。因為嗰啲單詞都係冇任何標點符號或阿拉伯數字，若果耖下當地話嘅辭典就好快搵到個詞嚟做密碼。

堅嘅密碼 
堅嘅密碼係話個密碼好長，好複雜，好難暴力破解到兼難估到出嚟。例如大小寫拉丁字同阿拉伯數字、標點符號及空格組合。呢啲噉嘅密碼即使係黑客同網絡攻擊啲友。都要用長達幾個禮拜到幾年，甚至幾代或好多個世紀時間先至破解到出嚟。

例如以下噉嘅密碼都屬安全密碼：

種類
堅嘅密碼可以有好多種組合。一般嚟講，組合得越多，破解難度就越大，破解時長就越長。

規則組合法
例如設一個基礎密碼，後面加堆規則嚟疊加，組成唔同嘅強密碼。呢啲密碼多數都圍繞有大寫同小寫嘅拉丁字、阿拉伯數字同符號。例如「michael」呢個係基礎嘅廢密碼，後邊加多個「0704-US」字符，組合成「michael0704-US」，呢個規則相當於「7月4號＋減號＋美國」嘅縮寫。

前綴組合法
例如設一個基礎密碼，後面加至少2個事物嘅前綴組合嚟唔同嘅強密碼。呢啲密碼多數都圍繞有單詞同數字排列同其它名嘅前綴組合。例如Princess同12345同Google嘅三個單詞組合，可以組合成Prin12345gle、Prin12345G、Prin12345Goo、Goo12345ceSS噉嘅組合。

符號法
例如設一個基礎密碼，跟住喺鍵盤入面輸入個特殊符號。因為特殊符號可以將廢密碼一下變勁好多。例如123qaz係個廢密碼，但係寫成「<123qaz>」噉就變勁咗好多。一般嚟講，黑客工具好多時為咗提高效率而唔會裝入特殊符號，即使裝入，最多凈裝例如「!」或「@」之類。

非本人信息法
例如設一個基礎密碼，入面包括至少一樣非本人嘅事物。例如座右銘、屋企寵物名、幼稚園名、舊情人等等……因為非本人嘅事物，黑客即使攞到個人資料啲嘢都未必破解到。

英文句子法
用條簡單嘅英文句子做密碼都係個辦法，例如「I'm Tom.」。因為噉嘅句子，即使黑客攞去破解，都要好長時間先至破解到。

參照法
用首歌嘅歌詞或其它内容名嘅頭字母兼随机大小寫夾帶符號做密碼。例如「星期一到星期七」，可以寫成「SK1douSK7」。

數理化公式法
用條簡單嘅帶字母嘅數理化公式亦係個辦法，例如「a+1<2-3b」或「4Al+3O2=2Al2O3」。因為黑客工具好多時為咗提高效率而唔會裝入數理化符號。

亂嚟嘅密碼 
最穏陣嘅密碼係一長串亂嚟嘅字元, but such passwords are generally the most difficult to remember. For the same number of characters, a password is stronger if it includes a mix of upper and lower case letters, numbers and other symbols (when allowed). The difficulty in remembering such a password increases the chance that the user will write down the password, which makes it more vulnerable to a different attack (in this case the paper being lost or stolen and the password discovered). Whether this represents a net reduction in security depends on whether the primary threat to security is internal or external.

A password can, at first sight, be random, but if you really examine it, it is just a pattern.  One of these types of passwords is 26845.  Although short, it is not easily guessed.  But the person who created the password is able to remember it, because it's just the four direction keys on the square number board (found at the right of most keyboards), plus a five in the middle.  If you practice it, it is just one swift motion of moving 2 fingers around the board (which is very easy to use).  

Forcing users to use system-created random passwords ensures the password will have no connection with that user and shouldn't be found in any dictionary. Several operating systems have included such a feature. Many also include password aging, requiring users to choose new passwords regularly, commonly after 30 or 45 days. Many users resent such measures, particularly in the absence of effective security awareness training. The imposition of strong random passwords may encourage users to write down passwords, store them in PDAs or cellphones, share them with others against memory failure, increasing the risk of disclosure.

The following measures can increase acceptance of random password use, if carefully used:
 Create a training program.  The initial advantages of random passwords need to be laid out for people.  Also, update training for those found to disclose passwords.
 Reward users of random passwords by reducing the rate of forced password changes to periods longer than 3 months.  Typically 4, 6 or 12 month forced password reset periods work.  Spreading out the password change process may have an advantage to human memory processes.
 Compensate for disclosed passwords by building a vigilant account closure process for departing users and/or a process to show each user a last login notification banner.
 Automate a password reset system as a safety net.  This will also reduce Helpdesk call volume concerning password resets. This must be done with care, however, because easily guessable password reset keys bypass the advantages of a strong password system!
Passwords can be found by using so-called brute force password generators. In the simplest case, these are small programs that simply try all possible combinations. A 3 GHz processor can generate approximately 3 million passwords a second. A ten letters password such as '4pRte!ai@3', because there are about 95 keys available, is one of  possibilities, which would take approximately 632860 years to be found assuming purely random possible password generation. A password containing fifteen random upper-case letters would be just as safe and might be easier for some people to remember and type.

Training 
In large password files the awareness of password strength may be roughly measured by the time it takes to crack 50% of the password hashes present.  With a large password file, using a standard Pentium 4 system, Microsoft password hashing techniques and an under-trained user group making password choices, it may be safely estimated that 50% of the password hashes will crack in less than two minutes.  However, with careful attention to password strength advice, password choices can outlast the patience of a password cracking effort.  

User training versus a cracking time metric for large user base password files:

Note: times are based on reports from authorized password cracking efforts that used John the Ripper, without a dictionary, on Microsoft LM Hashes, run on a Pentium 4, 2 GHz system.   Only results from password files containing greater than 3,000 password hashes are included.

Pre-computed rainbow tables represent a determined computing investment.  The greater the range of keys included and the length in password places covered, the greater the number of combinations to compute, and the greater the expense of time or money to obtain them.  

Factors to consider
 Key space
 Investment in computer time
 Parallel computing team coordination
 Raw patience of a determined computing effort
 Predictive accuracy
 Encryption type
 Storage space
 Distribution or purchase costs

Rainbow Table Defenses
 Exceeding the password length of commonly available tables.
 Exceeding the keyspace of commonly available tables.
 Avoiding the use or exceeding the useful length of old hashing methods.
 Preventing the capture of password hashes.
 Using salts.

Passwords weakened by hashing vulnerabilities 
Knowing which password hashing methods are used to protect your password can help you choose a more effective one.  In this training example the effect of position in password selection is illustrated.  Microsoft has updated its password hashing methods over time, but the LM hashing method often remains because of backward compatible features of newer Microsoft systems.  

Training Samples to avoid.

Why are these sample passwords at risk?
 Each 7 places in a Microsoft LM password hash may be cracked separately.
 These passwords show unfortunate placement problems in LM hashing protection.

LM hashing is only used by Microsoft for passwords of 14 places or less. 
 Longer passwords will not be subject to backward compatible hashing weakness.
 By evading LM hashing, substantial improvements in cracking delay are added.
 An extra password place beyond 14 can frustrate a cracking effort by millions of years by avoiding LM password hashing.
 Such a plan can work even inside a network where shorter passwords are backward compatible to LM hashing.
 Support and use of LM hashes can be turned off if no pre-Windows 2000 systems are in use.

Guarding user passwords 

Computer users are generally advised "never write a password down anywhere, no matter what" and "never use a password for more than one account." These maxims, while sound in theory, ignore the reality that an ordinary computer user may have dozens of password-protected accounts. The multitude of accounts often ends up with users having the same password everywhere. A user's attempt to comply will often result in many forgotten passwords, even for important accounts. 

If passwords are written down, they should never be kept in obvious places such as address books, Rolodex files, under drawers or keyboards or behind pictures. Perhaps the worst, but all too common, method is a note near the computer. Better locations are a safe deposit box or a locked file approved for information of comparable sensitivity to that protected by the password. Software is available for popular hand-held computers that can store passwords for numerous accounts in encrypted form. Another approach is to use a single password for low security accounts and select separate, strong passwords for a smaller number of high-value applications such as online banking.  Manual or offline forms of this approach are also in use.  For example, a phone directory may be used to keep a map between computer accounts and password hints.    

The problem of password overload is quite real.  Certain IT professionals may manage from 25 to 250 privileged passwords at any one time.  In such cases, some safe storage area for password hints, private key or encrypting password become unavoidable.  

At a 2005 security conference, an expert from Microsoft was quoted as saying: "I claim that password policy should say you should write down your password. I have 68 different passwords. If I am not allowed to write any of them down, guess what I am going to do? I am going to use the same password on every one of them."

Whether it is worse to use weak passwords that are memorized or strong passwords that are written down can provoke fierce debate among experts. Practical security often requires balancing conflicting imperatives such as security requirements and human factors.

The problem was addressed in an interesting way by Steve Gibson during his "Security Now" podcasts with Leo Laporte; he suggested creating not a password, but a password algorithm that could be universally applied to a company name or other unique indicator. A simple algorithm, such as using every other letter from a name, would generate the password wkpda for a Wikipedia password; although this example is a fairly low-security password, minor variables to include numbers, capitalization and symbols can generate a password which is seemingly random, difficult or impossible to remember, but easy to re-generate at any time.

Rather than writing the passwords themselves, some write lists of cryptic clues to their own passwords that have relevance through personal experience. For example, if your favorite movie was Terminator and your cat's birthday was 2007-04-10 you could describe the password "terminator0410" as "Favorite movie cat is born without years".

In case that it may happen that you need to type the password while being abroad on a different PC, then consider that the PCs abroad may have a different keyboard layout than yours, and you should avoid passwords containing chars that are not present in other keyboard layouts.

Password discovery 
Passwords can be discovered by shoulder surfing, burglary, extortion, blackmail, threats, or other methods. Information diving is surprisingly fruitful for situations in which sensitive printed data is discarded with insufficient precaution; it is said to be part of the techniques which have produced the recent rise in identity theft. Approximate password length can be discovered even without shoulder surfing by simply counting keyboard clicks or noting finger motions. Research published by IBM in 2004 shows that each key on a keyboard has a distinctive acoustic signature, allowing keyed in data, including passwords, to be recovered by analyzing recordings from a covert listening device or "bug." See: Acoustic cryptanalysis.

Obtaining passwords by psychological manipulation of users is an example of social engineering. An attacker might telephone a user and say "Hi. Systems Control here. We're doing a security test. Can we have your password so we can proceed?" Systems administrators and other support staff will very rarely, if ever, need to know a user's password in order to perform their jobs. System administrators with "root" or superuser privileges can change the users' passwords without their permission, so they have no need whatsoever to ask for it. In addition, they will go out of their way not to ask for a password, precisely because they do not want to encourage the habit of giving passwords to anyone. Users do not generally appreciate that any of this is so, and are thus too often vulnerable to social engineering.

Password Betrayal is a method that takes advantage of a mixed mode technique.  It uses the combined effect of differing strengths of password hashing and the habit of people to re-use the same password many times.  A classic example of password betrayal would be a person re-using the same password on two independent computer systems.  On one computer system the strong password is strongly protected.  But on the other computer system the password protection is easily defeated.  The under protected password is then re-used with other accounts known to belong to the same person.  This password capture method can work even if the password is a strong or complex password choice.  

Single sign-on solutions can be an advantage in reducing the risk of password betrayal.  However, a person may access separate systems with differing password encryption strengths, password complexity rules, single sign-on product vendors and computer security vulnerabilities.  

To help, a person can keep an index of which password is in use with multiple accounts.  This strategy can mitigate this risk to some extent.  The password use index allows the person to change groups of accounts with identical passwords as needed.  But, a password use index should only contain password hints rather than direct password examples.  Care should be taken to protect a password use index from easy duplication, sharing, exposure or capture.

同攷
攷

連出去 
Best password Checker- test your password strength
 PHP Password Strength Algorithm.
 Choosing Good Passwords -- A User Guide.
 Password Policy Guidelines.
 Examples of common (and hence weak) passwords
 The Memorability and Security of Passwords -- Some Empirical Results (Study done by Cambridge University Computer Laboratory)
 Bruce Schneier (December 14, 2006). MySpace Passwords Aren't So Dumb.
 Rainbow tables
 Simple rules for choosing a good password

類:密碼學
類:演算法