File: CHANGES

package info (click to toggle)
ruby-password 0.5.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 240 kB
  • ctags: 76
  • sloc: ruby: 407; ansic: 48; makefile: 4
file content (140 lines) | stat: -rw-r--r-- 4,462 bytes parent folder | download | duplicates (4)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
$Id: CHANGES,v 1.10 2006/03/02 19:44:13 ianmacd Exp $


0.5.3
-----

No functional changes. The build no longer tries to use packer.h if available.
crack.h will always be sought and used.


0.5.2
-----

No functional changes. The build environment was modified to search for the
system dictionary in the additional location of
/var/cache/cracklib/cracklib_dict.pwd, which is where it is on Debian Linux.


0.5.1
-----

Password.get would throw an exception in the unlikely event that STDIN reached
EOF without any input. Thanks to Will Drewry <wad@google.com> for pointing
this out.

pwgen now supports a -v or --version switch.


0.5.0
-----

This is a major update. The user-visible changes between this version and the
previous, 0.4.1, are as follows:

A new example program, pwgen, has been added, complete with man page. Ted
Ts'o's C program of the same name inspired this Ruby version. The man page is
also adapted from his.

A new class method, Password.phonemic, generates phonemic passwords. This,
too, was inspired by Ted Ts'o's work on pwgen. As its second parameter, it can
take zero or more new constants, logically OR'ed together. Available constants
are Password::ONE_DIGIT and Password::ONE_CASE. The former specifies that the
generated password should contain at least one digit, whilst the latter
specifies that the password should contain at least one capital letter.

The old Password.random method has been renamed Password.urandom and replaced
by a new Password.random that does not depend on /dev/urandom, making it much
more portable. Password.urandom will return nil on platforms that do not
implement the /dev/urandom device.

Password.get will now detect whether STDIN is connected to a tty. If not, no
password prompt is displayed and no attempt will be made to manipulate
terminal echo.

The prompt parameter to Password.get and Password.getc must now be passed in
its entirety. Previously, the string ': ' would be automatically appended to
the user-supplied prompt, but this behaviour has been changed in order to
accommodate null prompts. The default string for the prompt parameter has been
changed accordingly.

Running password.rb directly will now result in a call to Password.phonemic
and the display of the resulting password.

The Password::BadDictionary exception has been renamed
Password::DictionaryError and made a subclass of StandardError instead of
RuntimeError.

The CryptError exception has been moved to Password::CryptError and is now a
subclass of StandardError instead of RuntimeError.

A new constant, PASSWD_CHARS, gives the list of characters from which
automatically generated passwords will be chosen. Note that Password.urandom
will use the additional characters '+' and '/'.

A new constant, SALT_CHARS, gives the list of characters valid as salt
characters when invoking Password#crypt.

Password.getc now returns an instance of Password, not String.

Password.random now returns a Password, not a String.

A Password::CryptError exception is now raised if the salt passed to
Password#crypt contains a bad character.

RDoc documentation has been added. The INSTALL file explains how to build it.

The RD documentation has been removed in favour of the RDoc documentation.


0.4.1
-----

Use of the rb_enable_super() function caused a warning in Ruby 1.8.x. This
has now been fixed.


0.4.0
-----

When a bad dictionary path is provided to Password#check, a
Password::BadDictionary exception is now raised.

Turn off Ruby buffering for Password.getc, as this resulted in the prompt not
being displayed when called by Ruby 1.8.


0.3.0
-----

The Crack class is gone and Password is now a direct subclass of String.  If
you were previously creating Crack objects and calling their methods, you can
now no longer do this (and there really never was a good reason to do that,
anyway).

As a result of this change, Password#check now raises a Password::WeakPassword
exception if the password is weak, not a Crack::WeakPassword exception.


0.2.1
-----

No new features. The only changes are portability enhancements to the build
system.


0.2.0
-----

Password#check no longer returns an empty string on success and a string
describing the nature of the password weakness on failure.

Instead, it returns true on success and raises a Crack::WeakPassword exception
on failure.


0.1.1
-----

Password.get now returns an instance of Password, not String.
Password.new now defaults to assigning a null string.