alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
remove pw_rotate
author
j3s
date
5 years ago
(Jan 28, 2021, 4:10 PM -0600)
commit
c6629668
c66296683cad020ebe12168f50572bf4eb2dbde5
parent
dd924016
dd924016c237ed1200c9869af85819c83a8ba751
-19
1 changed file
Expand all
Collapse all
Unified
Split
bin
pa
-19
bin/pa
Reviewed
···
49
49
printf '%s\n' "Saved '$name' to the store."
50
50
}
51
51
52
52
-
pw_rotate() {
53
53
-
if yn "Generate a new key and re-encrypt all of your passwords?"; then
54
54
-
mkdir -p ~/.age
55
55
-
printf "Old key saved at ~/.age/key.txt.bak"
56
56
-
mv ~/.age/key.txt ~/.age/key.txt.bak
57
57
-
age-keygen -o ~/.age/key.txt
58
58
-
59
59
-
cd "$PA_DIR"
60
60
-
for pass in *; do
61
61
-
printf "$pass\n"
62
62
-
ls -l "$pass"
63
63
-
cat "$pass"
64
64
-
done
65
65
-
66
66
-
printf "Completed rotation\n"
67
67
-
fi
68
68
-
}
69
69
-
70
52
pw_edit() {
71
53
name=$1
72
54
···
239
221
e*) pw_edit "$2" ;;
240
222
s*) pw_show "$2" ;;
241
223
l*) pw_list ;;
242
242
-
r*) pw_rotate ;;
243
224
*) usage
244
225
esac
245
226
}