[ANN] keybox 1.0.0 Released

J

Jeremy Hinegardner

keybox version 1.0.0 has been released.

http://keybox.rubyforge.org

Keybox is a set of command line applications and ruby libraries for
secure password storage and password generation.

{{ Changelog for Version 1.0.0 }}

=== Version 1.0.0

* Initial public release
* +keybox+ - Full basic functionality
- database creation
- basic CRUD operations
- searching
- import and export of CSV's
- colorized output
* +kpg+ - Full basic functionality
- pick between random and pronounceable passwords
- set minimum and maximum password length
- set symbol sets to use in password generation


http://keybox.rubyforge.org
 
B

Bonhôte André

--Apple-Mail-1--586152058
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

Hi!

keybox version 1.0.0 has been released.

http://keybox.rubyforge.org

Keybox is a set of command line applications and ruby libraries for
secure password storage and password generation.

Nice, but it looks terrible on my whiteish terminal. Is there an easy =20=

way to change the colors?

Cheers
Andr=E9

Andr=E9 Bonh=F4te
Systems Engineer
COLT Telecom AG
M=FCrtschenstrasse 27
CH-8048 Z=FCrich
Switzerland
Tel: +41 (0)58 560 15 01 Internal OneDial: 8-411-0501
Fax: +41 (0)58 560 2501
Email: (e-mail address removed)
www.colt.net

Data | Voice | Managed Services




--Apple-Mail-1--586152058
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iEYEARECAAYFAkWrMPUACgkQzG+pQngxWRZB5gCgja5X2OblAi0c8etI5dIsoWrB
Ct8Ani8becZGtiAPdt91wcHpszle7NR6
=vNAp
-----END PGP SIGNATURE-----

--Apple-Mail-1--586152058--
 
J

Jeremy Hinegardner

Neat. you may want to look at Highline for OS independent password entry.

I considered using Highline and even looked at how it handled stty
for inspiration. But one of the goals I wanted for this was to not
depend on any gems so that it could be installed on USB drives or other
portable storage device. And so its only requirement for daily usage
would be ruby.

But maybe that's thinking too much. I could easily take out the
prompting and replace it with Highline.

Although that just brings up another issue. What's the best way to have
your personal stash of ruby gems or installation or something on a USB
drive or something like that and make it easily usable from any machine
that has ruby installed on it.

Or for that matter, having different ruby's for different platforms all
installed on a portable drive so you can plug it into any machine and
use all your pure ruby stuff ?

enjoy,

-jeremy
 
G

Gregory Brown

Nice, but it looks terrible on my whiteish terminal. Is there an easy
way to change the colors?

To double plug, Highline would make that easy too. :)
You can toggle on and colors :)
 
G

Gregory Brown

I considered using Highline and even looked at how it handled stty
for inspiration. But one of the goals I wanted for this was to not
depend on any gems so that it could be installed on USB drives or other
portable storage device. And so its only requirement for daily usage
would be ruby.

Just vendor HighLine with your tool. It's only like, 3 or 4 files,
and since we've got it pretty well stabilized it should be solid and
not need to be updated any time soon...
 
J

Jeremy Hinegardner

Hi!



Nice, but it looks terrible on my whiteish terminal. Is there an easy
way to change the colors?

Not from a user-configurable standpoint. But its a great idea so I'll
put it on the feature tracker. Hmm... that could make a good separate
library on its own. I may have to do that.

If you can wait a week or so I can find some time to make
userconfigurable colors available.

In the meantime, all the colors are configured from the file
lib/keybox/term_io.rb. You could change the color in there, just change
the values on the value side of the COLORS hash and probably make the
default to not be bold in the 'colorize' method.

I have a patch submitted to add a --no-color option already, and I'll
probably incorporate that too.

I'm just please that people find it useful enough to tell me whats
missing so I can make it better :).

Thanks for the feedback folks.

enjoy,

-jeremy
 
J

Jeremy Hinegardner

Just vendor HighLine with your tool. It's only like, 3 or 4 files,
and since we've got it pretty well stabilized it should be solid and
not need to be updated any time soon...

I don't know why I didn't think of that. Sounds good, I should
probably do it.

You can probably expect another release of keybox after next weekend
then.

enjoy,

-jeremy
 
G

Gregory Brown

Not from a user-configurable standpoint. But its a great idea so I'll
put it on the feature tracker. Hmm... that could make a good separate
library on its own. I may have to do that.

You don't have to :)

require "highline/import"

# Supported color sequences.
colors = %w{black red green yellow blue magenta cyan white}

# Using color() with symbols.
colors.each_with_index do |c, i|
say("This should be <%= color('#{c}', :#{c}) %>!")
if i == 0
say( "This should be " +
"<%= color('white on #{c}', :white, :eek:n_#{c}) %>!")
else
say( "This should be " +
"<%= color( '#{colors[i - 1]} on #{c}',
:#{colors[i - 1]}, :eek:n_#{c} ) %>!")
end
end

# Using color with constants.
say("This should be <%= color('bold', BOLD) %>!")
say("This should be <%= color('underlined', UNDERLINE) %>!")

# Using constants only.
say("This might even <%= BLINK %>blink<%= CLEAR %>!")

# It even works with list wrapping.
erb_digits = %w{Zero One Two Three Four} +
["<%= color('Five', :blue) %%>"] +
%w{Six Seven Eight Nine}
say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>")
 
G

Gregory Brown

You don't have to :)

Oh, i didn't quite understand the question. You should definitely use
Highline for coloring, unless you have needs it does not cover. I
don't know how James would feel, but honestly, I think it'd be a great
idea to introduce a 'color profile' configuration you can load into
HighLine that'd allow for you to set names like:

Highline.color_profile do |c|
c.main_color "cyan"
c.alert_color "red"
end

# or maybe

Highline.color_profile("colors.yaml")

So if you're in a library writing mood, maybe you can just give us a
patch that does that? :)
I imagine this would be super easy to implement, and would be great
for letting users easily tweak their configs.
 
J

Jeremy Hinegardner

Oh, i didn't quite understand the question. You should definitely use
Highline for coloring, unless you have needs it does not cover. I
don't know how James would feel, but honestly, I think it'd be a great
idea to introduce a 'color profile' configuration you can load into
HighLine that'd allow for you to set names like:

Highline.color_profile do |c|
c.main_color "cyan"
c.alert_color "red"
end

# or maybe

Highline.color_profile("colors.yaml")

So if you're in a library writing mood, maybe you can just give us a
patch that does that? :)
I imagine this would be super easy to implement, and would be great
for letting users easily tweak their configs.

Yeah, something along those lines. I'll give it some thought and see
what I can come up with and contribute it to Highline. The application
colour profile, registers "types" of color, main, alert, warning etc and
then those can be overwritten by a user by loading a different profile
or something along those lines.

I'm in the library writing mood. Let me see what pops out.

Good suggestions all around.

enjoy,

-jeremy
 
G

Gregory Brown

I'm in the library writing mood. Let me see what pops out.

Cool! If you'd like to submit a patch send it to james <at>
grayproductions <dot> net
but CC me as well. (I'm a committer, but james has the final say on
what goes in)

Thanks!
-greg
 
B

Bonhôte André

--Apple-Mail-1--502098723
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

Hi

If you can wait a week or so I can find some time to make
userconfigurable colors available.

Sure :) I have set my Terminal.app to white on black for the time =20
being.
In the meantime, all the colors are configured from the file
lib/keybox/term_io.rb. You could change the color in there, just =20
change
the values on the value side of the COLORS hash and probably make the
default to not be bold in the 'colorize' method.

Yeah, found that one.
I'm just please that people find it useful enough to tell me whats
missing so I can make it better :).

I do. I'm transferring all the passes from my pgp-encrypted file to =20
keybox right now.

Two other feature requests:
- Put a timestamp to each entry, maybe even editable. Like this, you =20
could filter out old and possibly outdated passwords
- Offer a way to find duplicates

Thanks!

Andr=E9
Andr=E9 Bonh=F4te
Systems Engineer
COLT Telecom AG
M=FCrtschenstrasse 27
CH-8048 Z=FCrich
Switzerland
Tel: +41 (0)58 560 15 01 Internal OneDial: 8-411-0501
Fax: +41 (0)58 560 2501
Email: (e-mail address removed)
www.colt.net

Data | Voice | Managed Services




--Apple-Mail-1--502098723
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iEYEARECAAYFAkWseUkACgkQzG+pQngxWRaqdwCgw0E4uix3NVc2tnSO2Y1Egp0g
r7kAn0akM8ihCKk+PDGpR1/oOs09GAYr
=e6RQ
-----END PGP SIGNATURE-----

--Apple-Mail-1--502098723--
 
J

Jeremy Hinegardner

I do. I'm transferring all the passes from my pgp-encrypted file to
keybox right now.

Yeah, a convert!. Are you able to take advantage of --import-from-csv ?
Two other feature requests:
- Put a timestamp to each entry, maybe even editable. Like this, you
could filter out old and possibly outdated passwords

The underlying data storage already records the creation, modification
and access times of every record, I'm just not printing that information
out right now.

A future enhancement would be to allow for warnings of expiring
passwords or notification that some password may not be used any more,
etc.
- Offer a way to find duplicates

Good suggestions, I don't think I can promise these quite yet. But I'll
put them on the list.

enjoy,

-jeremy
 
B

Bonhôte André

--Apple-Mail-1--498902875
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Yeah, a convert!. Are you able to take advantage of --import-from-=20
csv ?

Sure. Works fine.
Good suggestions, I don't think I can promise these quite yet. But =20=
I'll
put them on the list.

No worries :)

CU!

Andr=E9

Andr=E9 Bonh=F4te
Systems Engineer
COLT Telecom AG
M=FCrtschenstrasse 27
CH-8048 Z=FCrich
Switzerland
Tel: +41 (0)58 560 15 01 Internal OneDial: 8-411-0501
Fax: +41 (0)58 560 2501
Email: (e-mail address removed)
www.colt.net

Data | Voice | Managed Services




--Apple-Mail-1--498902875
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iEYEARECAAYFAkWshcYACgkQzG+pQngxWRYFYgCfb4qNj4z2MfgQtNaJknWTRled
pp8AoJmntMOBniOYKsSOsMG8K1pU5q8j
=LcR5
-----END PGP SIGNATURE-----

--Apple-Mail-1--498902875--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top