|
|
@ -1,7 +1,6 @@ |
|
|
|
package Encryption |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"bytes" |
|
|
|
"crypto/aes" |
|
|
|
"errors" |
|
|
@ -76,7 +75,6 @@ func EditEncryptedFile(password string, FilePath string) (error) { |
|
|
|
// open output file
|
|
|
|
encryptedFile, e = os.OpenFile(FilePath, os.O_RDWR, 0666) |
|
|
|
if e != nil { |
|
|
|
fmt.Println(1) |
|
|
|
return e |
|
|
|
} |
|
|
|
|
|
|
@ -87,7 +85,6 @@ func EditEncryptedFile(password string, FilePath string) (error) { |
|
|
|
|
|
|
|
_, e = io.Copy(encryptedFile, bytes.NewReader(ciphertext)) |
|
|
|
if e != nil { |
|
|
|
fmt.Println(2) |
|
|
|
return e |
|
|
|
} |
|
|
|
|
|
|
|