string-encrypt 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/journal.rb +3 -3
- metadata +1 -1
data/bin/journal.rb
CHANGED
@@ -11,14 +11,14 @@ else
|
|
11
11
|
filename = ARGV[0]
|
12
12
|
end
|
13
13
|
if File.exists? filename then
|
14
|
-
system("decrypt -i rsa.priv -o tmp_priv.pem")
|
15
|
-
`decrypt -i #{filename} -o #{filename}.tmp -z -k tmp_priv.pem`
|
14
|
+
system("decrypt.rb -i rsa.priv -o tmp_priv.pem")
|
15
|
+
`decrypt.rb -i #{filename} -o #{filename}.tmp -z -k tmp_priv.pem`
|
16
16
|
system "clear"
|
17
17
|
`rm tmp_priv.pem`
|
18
18
|
if File.exists? "#{filename}.tmp" then
|
19
19
|
`echo $(date) >> #{filename}.tmp`
|
20
20
|
system("vim #{filename}.tmp")
|
21
|
-
`encrypt -i #{filename}.tmp -o #{filename} -z -k rsa.pub`
|
21
|
+
`encrypt.rb -i #{filename}.tmp -o #{filename} -z -k rsa.pub`
|
22
22
|
`rm #{filename}.tmp`
|
23
23
|
else
|
24
24
|
puts "decryption failed"
|