u2 20130909
This commit is contained in:
6
addEntry.sh
Executable file
6
addEntry.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
spawn pwsafe -a
|
||||
expect "Enter passphrase for *:"
|
||||
send "\r"
|
||||
interact
|
||||
4
decryptExporPw.sh
Executable file
4
decryptExporPw.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
FILE=$1
|
||||
~/bin/decryptFileByRSA.sh $FILE ~/.ssh/id_rsa
|
||||
|
||||
6
editEnrty.sh
Executable file
6
editEnrty.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
spawn pwsafe -e [lindex $argv 0]
|
||||
expect "Enter passphrase for *:"
|
||||
send "\r"
|
||||
interact
|
||||
@@ -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
8
exportPwsafe.sh~
Executable 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
6
listAcc.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
spawn pwsafe -l
|
||||
expect "Enter passphrase for *:"
|
||||
send "\r"
|
||||
expect eof
|
||||
Reference in New Issue
Block a user