[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] keybox 1.0.0 Released

Jeremy Hinegardner

1/15/2007 3:16:00 AM

keybox version 1.0.0 has been released.

http://keybox.rub...

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.rub...

--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org


14 Answers

Gregory Brown

1/15/2007 5:17:00 AM

0

On 1/14/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> keybox version 1.0.0 has been released.
>
> http://keybox.rub...
>
> Keybox is a set of command line applications and ruby libraries for
> secure password storage and password generation.

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

Bonhôte André

1/15/2007 7:46:00 AM

0

Hi!

On 15.01.2007, at 04:15, Jeremy Hinegardner wrote:

> keybox version 1.0.0 has been released.
>
> http://keybox.rub...
>
> 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
way to change the colors?

Cheers
André

André Bonhôte
Systems Engineer
COLT Telecom AG
Mürtschenstrasse 27
CH-8048 Zürich
Switzerland
Tel: +41 (0)58 560 15 01 Internal OneDial: 8-411-0501
Fax: +41 (0)58 560 2501
Email: andre.bonhote@colt.net
www.colt.net

Data | Voice | Managed Services



Jeremy Hinegardner

1/15/2007 4:21:00 PM

0

On Mon, Jan 15, 2007 at 02:17:01PM +0900, Gregory Brown wrote:
> On 1/14/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> >keybox version 1.0.0 has been released.
> >
> > http://keybox.rub...
> >
> >Keybox is a set of command line applications and ruby libraries for
> >secure password storage and password generation.
>
> 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

--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org


Gregory Brown

1/15/2007 6:00:00 PM

0

On 1/15/07, Bonhôte André <andre@bonhote.org> wrote:

> > 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
> way to change the colors?

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

Gregory Brown

1/15/2007 6:26:00 PM

0

On 1/15/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> On Mon, Jan 15, 2007 at 02:17:01PM +0900, Gregory Brown wrote:
> > On 1/14/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> > >keybox version 1.0.0 has been released.
> > >
> > > http://keybox.rub...
> > >
> > >Keybox is a set of command line applications and ruby libraries for
> > >secure password storage and password generation.
> >
> > 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.

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...

Jeremy Hinegardner

1/16/2007 2:47:00 AM

0

On Mon, Jan 15, 2007 at 04:45:48PM +0900, Bonh?te Andr? wrote:
> Hi!
>
> On 15.01.2007, at 04:15, Jeremy Hinegardner wrote:
>
> >keybox version 1.0.0 has been released.
> >
> > http://keybox.rub...
> >
> >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
> 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

--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org


Jeremy Hinegardner

1/16/2007 3:00:00 AM

0

On Tue, Jan 16, 2007 at 03:25:43AM +0900, Gregory Brown wrote:
> On 1/15/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> >On Mon, Jan 15, 2007 at 02:17:01PM +0900, Gregory Brown wrote:
> >> On 1/14/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> >> >keybox version 1.0.0 has been released.
> >> >
> >> > http://keybox.rub...
> >> >
> >> >Keybox is a set of command line applications and ruby libraries for
> >> >secure password storage and password generation.
> >>
> >> 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.
>
> 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

--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org


Gregory Brown

1/16/2007 3:08:00 AM

0

On 1/15/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> On Mon, Jan 15, 2007 at 04:45:48PM +0900, Bonh?te Andr? wrote:
> > Hi!
> >
> > On 15.01.2007, at 04:15, Jeremy Hinegardner wrote:
> >
> > >keybox version 1.0.0 has been released.
> > >
> > > http://keybox.rub...
> > >
> > >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
> > 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.

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, :on_#{c}) %>!")
else
say( "This should be " +
"<%= color( '#{colors[i - 1]} on #{c}',
:#{colors[i - 1]}, :on_#{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) %>")

Gregory Brown

1/16/2007 3:20:00 AM

0

On 1/15/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
> On 1/15/07, Jeremy Hinegardner <jeremy@hinegardner.org> wrote:
> > On Mon, Jan 15, 2007 at 04:45:48PM +0900, Bonh?te Andr? wrote:
> > > Hi!
> > >
> > > On 15.01.2007, at 04:15, Jeremy Hinegardner wrote:
> > >
> > > >keybox version 1.0.0 has been released.
> > > >
> > > > http://keybox.rub...
> > > >
> > > >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
> > > 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.
>
> 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.

Jeremy Hinegardner

1/16/2007 5:27:00 AM

0

On Tue, Jan 16, 2007 at 12:20:16PM +0900, Gregory Brown wrote:
> On 1/15/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
>
> 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

--
========================================================================
Jeremy Hinegardner jeremy@hinegardner.org