aboutsummaryrefslogtreecommitdiff
path: root/gocryptfs_main/masterkey.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-07 22:58:22 +0200
committerJakob Unterwurzacher2015-10-07 22:59:36 +0200
commited1df49af5bb616e5ec34585b20c9c93a96b8088 (patch)
tree953d6701036188c1ca68cecb11789106316f99a1 /gocryptfs_main/masterkey.go
parentc4a66bc30dbec1c3e0240f5d5bdb05412b2168a2 (diff)
Run go fmt
Diffstat (limited to 'gocryptfs_main/masterkey.go')
-rw-r--r--gocryptfs_main/masterkey.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/gocryptfs_main/masterkey.go b/gocryptfs_main/masterkey.go
index 205f2ab..69f268c 100644
--- a/gocryptfs_main/masterkey.go
+++ b/gocryptfs_main/masterkey.go
@@ -1,14 +1,13 @@
package main
import (
- "os"
- "fmt"
"encoding/hex"
- "strings"
+ "fmt"
"github.com/rfjakob/gocryptfs/cryptfs"
+ "os"
+ "strings"
)
-
// printMasterKey - remind the user that he should store the master key in
// a safe place
func printMasterKey(key []byte) {
@@ -16,8 +15,8 @@ func printMasterKey(key []byte) {
var hChunked string
// Try to make it less scary by splitting it up in chunks
- for i := 0; i < len(h); i+=8 {
- hChunked += h[i:i+8]
+ for i := 0; i < len(h); i += 8 {
+ hChunked += h[i : i+8]
if i < 52 {
hChunked += "-"
}