diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -52,21 +52,22 @@ func initDir(args *argContainer) { os.Exit(ERREXIT_INIT) } - // Create gocryptfs.diriv in the root dir - err = cryptfs.WriteDirIV(args.cipherdir) + // Create gocryptfs.conf + cryptfs.Info.Printf("Choose a password for protecting your files.\n") + password := readPasswordTwice(args.extpass) + err = cryptfs.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn) if err != nil { fmt.Println(err) os.Exit(ERREXIT_INIT) } - // Create gocryptfs.conf - cryptfs.Info.Printf("Choose a password for protecting your files.\n") - password := readPasswordTwice(args.extpass) - err = cryptfs.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn) + // Create gocryptfs.diriv in the root dir + err = cryptfs.WriteDirIV(args.cipherdir) if err != nil { fmt.Println(err) os.Exit(ERREXIT_INIT) } + cryptfs.Info.Printf("The filesystem is now ready for mounting.\n") os.Exit(0) } |