mirror of
https://codeberg.org/scip/gowipe.git
synced 2025-12-16 20:20:58 +01:00
move to codeberg (#1)
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"math/big"
|
||||
mathrand "math/rand"
|
||||
"os"
|
||||
@@ -141,7 +142,11 @@ func Encrypt(c *Conf, filename string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer outfile.Close()
|
||||
defer func() {
|
||||
if err := outfile.Close(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
key, err := GetRandomKey()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user