u2 20130909

This commit is contained in:
stubbfel
2013-09-09 22:22:46 +02:00
parent d5991aa301
commit 7bffc28862
7 changed files with 37 additions and 1 deletions

6
addEntry.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/expect
spawn pwsafe -a
expect "Enter passphrase for *:"
send "\r"
interact

4
decryptExporPw.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
FILE=$1
~/bin/decryptFileByRSA.sh $FILE ~/.ssh/id_rsa

6
editEnrty.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/expect
spawn pwsafe -e [lindex $argv 0]
expect "Enter passphrase for *:"
send "\r"
interact

View File

@@ -3,6 +3,6 @@ KEY=$1
FOLDER=`date +"%Y%m%d"`
mkdir $FOLDER
cd $FOLDER
pwsafe --exportdb > expo.dat
cp ~/.pwsafe.dat expo.dat
~/bin/encryptFileByRSA.sh expo.dat $KEY

8
exportPwsafe.sh~ Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
KEY=$1
FOLDER=`date +"%Y%m%d"`
mkdir $FOLDER
cd $FOLDER
pwsafe --exportdb > expo.dat
~/bin/encryptFileByRSA.sh expo.dat $KEY

6
listAcc.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/expect
spawn pwsafe -l
expect "Enter passphrase for *:"
send "\r"
expect eof

6
showPw.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/expect
spawn pwsafe -lpuE [lindex $argv 0]
expect "Enter passphrase for *:"
send "\r"
expect eof