Commit 5ec5a7c

mo <mo.khan@gmail.com>
2018-02-10 19:36:16
request a passphrase to encrypt the yml file.
1 parent f231645
Changed files (1)
lib
lib/tfa/cli.rb
@@ -46,6 +46,10 @@ module TFA
             yaml_storage.save(name, secret) if yes?("Migrate `#{name}`?")
           end
         end
+        if yes? "Encrypt `#{yml_path}`?"
+          passphrase = ask "Enter passphrase:", echo: false
+          say passphrase
+        end
         if yes? "Delete `#{pstore_path}`?"
           File.delete(pstore_path)
         end