#!/usr/bin/env perl ## Copyright © 2011 by Daniel Friesel ## License: WTFPL: ## 0. You just DO WHAT THE FUCK YOU WANT TO. use strict; use warnings; use 5.010; use App::Raps2; my $raps2 = App::Raps2->new(); my ( $action, @args ) = @ARGV; our $VERSION = '0.4'; given ($action) { when ('add') { $raps2->cmd_add(@args) } when ('del') { $raps2->cmd_remove(@args) } when ('dump') { $raps2->cmd_dump(@args) } when ('edit') { $raps2->cmd_edit(@args) } when ('get') { $raps2->cmd_get(@args) } when ('info') { $raps2->cmd_info(@args) } when ('list') { $raps2->cmd_list(@args) } when ('version') { say "raps2 version ${VERSION}" } default { die "Unknown action: $action\n" } } __END__ =head1 NAME raps2 - "Right, Another Password Store" take two =head1 SYNOPSIS B I I =head1 VERSION This manual documents B version 0.4 =head1 DESCRIPTION raps2 is a simple password safe. You give it a name, a password and optional metadata, and it will encrypt and store them for you. You probably want to start with C<< raps2 add accountname >>, and then later use C<< raps2 get accountname >> and paste the corresponding password into whatever application requires it. B will automatically initialize its store when used for the first time. Supported metadata are "URL", "Login" and the multiline "Extra" field. URL and Login will be saved as plaintext, Extra is encrypted like the password. =head1 ACTIONS =over =item B I Adds I to the store. It will ask you for the store's master password, some metadata and the new password and then store them. =item B I Remove I from the store. =item B I Dump everything saved for I, including the clear-text password, to stdout. =item B I Edit saved data for I. Note that editing the multiline "extra" field is not yet possible. =item B I Decrypt I's password and store it in the primary X Clipboard. Note that it can only be pasted once. Prints the content of the multiline B field (if present) to stdout. =item B I Show information about I, does not require the master password. =item B List all saved accounts with their respective Logins and URLs =back =head1 OPTIONS None. =head1 EXIT STATUS zero on success, non-zero otherwise. =head1 CONFIGURATION raps2 saves the master password hash in F<~/.config/raps2/password>. Additional encrypted passwords are stored in F<~/.local/share/raps2/>. These directories can be changed by setting the B and B environment variables. =head1 DEPENDENCIES =over =item * Crypt::CBC =item * Crypt::Eksblowfish =item * File::BaseDir =item * File::Path (usually included with perl core) =item * File::Slurp =item * xclip (for C<< raps2 get >>) =back =head1 BUGS AND LIMITATIONS This is alpha software, the store format may change without further notice. Backwards-compatibility is not guaranteed. =head1 AUTHOR Copyright (C) 2011 by Daniel Friesel Ederf@finalrewind.orgE =head1 LICENSE 0. You just DO WHAT THE FUCK YOU WANT TO.