VeraCrypt

Documentation >> Security Requirements and Precautions >> Choosing Passwords and Keyfiles

Choosing Passwords and Keyfiles

It is very important that you choose a good password. You must avoid choosing one that contains only a single word that can be found in a dictionary (or a combination of such words). It must not contain any names, dates of birth, account numbers, or any other items that could be easy to guess. A good password is a random combination of upper and lower case letters, numbers, and special characters, such as @ ^ = $ * + etc. We strongly recommend choosing a password consisting of more than 20 characters (the longer, the better). Short passwords are easy to crack using brute-force techniques.

To make brute-force attacks on a keyfile infeasible, the size of the keyfile must be at least 30 bytes. If a volume uses multiple keyfiles, then at least one of the keyfiles must be 30 bytes in size or larger. Note that the 30-byte limit assumes a large amount of entropy in the keyfile. If the first 1024 kilobytes of a file contain only a small amount of entropy, it must not be used as a keyfile (regardless of the file size). If you are not sure what entropy means, we recommend that you let VeraCrypt generate a file with random content and that you use it as a keyfile (select Tools -> Keyfile Generator).

When creating a volume, encrypting a system partition/drive, or changing passwords/keyfiles, you must not allow any third party to choose or modify the password/keyfile(s) before/while the volume is created or the password/keyfiles(s) changed. For example, you must not use any password generators (whether website applications or locally run programs) where you are not sure that they are high-quality and uncontrolled by an attacker, and keyfiles must not be files that you download from the internet or that are accessible to other users of the computer (whether they are administrators or not).

ry='blob content' class='blob'>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* XPM */
static const char *VeraCryptIcon16x16[] = {
"16 16 86 1",
" 	c None",
".	c #FFFFFF",
"+	c #FDFEFF",
"@	c #FDFEFE",
"#	c #FEFEFE",
"$	c #FEFFFE",
"%	c #FEFFFF",
"&	c #FEFEFF",
"*	c #FCFEFE",
"=	c #60C9E6",
"-	c #6FCDE7",
";	c #C4E7DC",
">	c #8ACCB7",
",	c #A0D4C2",
"'	c #BFE1D4",
")	c #FCFEFD",
"!	c #8CD6EC",
"~	c #0096CC",
"{	c #B8E2F1",
"]	c #F1F9F7",
"^	c #51BA9C",
"/	c #68C0A5",
"(	c #9FD3C0",
"_	c #CFE9E0",
":	c #3FA8D7",
"<	c #399CD3",
"[	c #F9FCFD",
"}	c #87D4C1",
"|	c #38B495",
"1	c #E2F4EF",
"2	c #C5E0F1",
"3	c #0C79C1",
"4	c #A0C7E5",
"5	c #E6F8F6",
"6	c #1A7C68",
"7	c #479A80",
"8	c #FBFFFF",
"9	c #FCFDFD",
"0	c #66A1D1",
"a	c #2B74BA",
"b	c #5AB3C3",
"c	c #288F93",
"d	c #248C6C",
"e	c #89C6B6",
"f	c #C5E2DB",
"g	c #E4F3EF",
"h	c #E1E9F6",
"i	c #24679C",
"j	c #026B83",
"k	c #BAE2ED",
"l	c #7CB8A3",
"m	c #0E7A59",
"n	c #159271",
"o	c #60C2AC",
"p	c #EEEEEE",
"q	c #E6E6E6",
"r	c #FFFEFF",
"s	c #DCE9EC",
"t	c #CEDFE3",
"u	c #EEECEC",
"v	c #F0F7F4",
"w	c #D6E9E3",
"x	c #D5EBE5",
"y	c #CEEAE4",
"z	c #FAFDFD",
"A	c #CBCBCA",
"B	c #777775",
"C	c #8E8E8E",
"D	c #A29F9E",
"E	c #959190",
"F	c #D0D1D0",
"G	c #C6C5C5",
"H	c #BFBCBC",
"I	c #B1ADAD",
"J	c #DCD9D9",
"K	c #F6F6F6",
"L	c #DFDFDE",
"M	c #DEDEDE",
"N	c #DFDFDF",
"O	c #D9DADA",
"P	c #EDEDED",
"Q	c #E5E6E5",
"R	c #CECFCE",
"S	c #DEDFDE",
"T	c #F4F5F5",
"U	c #FDFDFD",
"                ",
"    ........    ",
"   ++....@@#$   ",
"   %.&..%%...   ",
"  *=-.%@.;>,')  ",
"  .!~{..]^/(_.  ",
" %..:<[.}|1.@.. ",
"..@.2345678.@...",
"...9.0abcdefg.$.",
" ..@.hijklmno.$ ",
"  .pqrstuvwxyz  ",
"  .ABCDEFGHIJ.  ",
"   KLMNOPQRST   ",
"   ##....#...   ",
"    UUUU####    ",
"                "};