ç§ã¯äœå¹Žãã®éèªåã®ããã«åããã¹ã¯ãŒãã¹ãã¢ãæ¢ããŠããŸããããæè¿Pass onHackerNewsã«åºããããŸãããgitãªããžããªã«ãã¹ã¯ãŒããä¿åãããšããèãã¯å¥åŠã«èããããããããŸããããå šäœãšããŠã¯æªãèãã§ã¯ãããŸãããçç±ã¯æ¬¡ã®ãšããã§ãã
- ç§ã¯èªåã®ã³ã³ãã¥ãŒã¿ãŒã«ããŒã«ã«ã«gitãªããžããªãä¿æããŠããŸã
- ãã¹ãŠã®ãã¹ã¯ãŒãã¯GPGæå·åã«ãã£ãŠä¿è·ãããŠãããããã³ã³ãã¥ãŒã¿ãŒãžã®SSHã¢ã¯ã»ã¹ãååŸããŠãããªãŒã¯ã¯ã»ãã¥ãªãã£ã«åœ±é¿ããŸããã
-cã䜿çšããŠãã¹ã¯ãŒããã³ããŒ/貌ãä»ãããŸãããã©ãŠã¶çšã®æ¡åŒµæ©èœããããŸãããå人çã«ã¯ã³ããŒïŒããŒã¹ãã®æ¹ã䟿å©ã§ããé»è©±ãšãã¹ãŠã®Linuxããã€ã¹ãšã®åæã®åé¡ãããã ãã®äŸ¡å€ã¯ãããŸããïŒããã¯åãªãgitã§ããããïŒã
ãã¹ã®ãŠã§ã«ã«ã ããŒãžã®ç¿»èš³ãããªããšå ±æããŠããŸãã
ãã¹ã¯ãŒã管çã¯ã·ã³ãã«ã§ãUnixå²åŠã«åŸãå¿ èŠããããŸã ã passã䜿çšãããšãåãã¹ã¯ãŒãã¯æå·åãããgpgãã¡ã€ã«å ã«ä¿åãããŸãããã®ãã¡ã€ã«ã®ååã¯ãæå®ããããã¹ã¯ãŒãããªã³ã¯ãããŠãããªãœãŒã¹ãŸãã¯Webãµã€ãã®ååãšåãã§ãããããã®æå·åããããã¡ã€ã«ã¯ã䟿å©ãªãã©ã«ãéå±€ã«ç·šæããã¡ãã£ã¢ããã¡ãã£ã¢ã«ã³ããŒããéåžžãä»»æã®ã³ãã³ãã©ã€ã³ãã¡ã€ã«ç®¡çãŠãŒãã£ãªãã£ã䜿çšããŠåŠçã§ããŸãã
ãã¹ã䜿çšãããšãåã ã®ãã¹ã¯ãŒããã¡ã€ã«ã®ç®¡çãéåžžã«ç°¡åã«ãªããŸãããã¹ãŠã®ãã¹ã¯ãŒãã¯ã/ .password-storeã«ä¿åãããpassã¯ããã¹ã¯ãŒããè¿œå ãç·šéãçæãããã³ååŸããããã®ããã€ãã®äŸ¿å©ãªã³ãã³ããæäŸããŸããããã¯éåžžã«çããŠåçŽãªã·ã§ã«ã¹ã¯ãªããã§ããã¯ãªããããŒãã«äžæçã«ãã¹ã¯ãŒããèšå®ããgitã䜿çšããŠãã¹ã¯ãŒãã®å€æŽã远跡ããããšãã§ããŸãã
ãã¹ã¯ãŒãã¹ãã¢ã¯ãpassã³ãã³ããšçµã¿åãããŠæšæºã®unixã·ã§ã«ã³ãã³ãã䜿çšããŠç·šéã§ããŸããåŠã¶ã¹ã掟æãªãã¡ã€ã«åœ¢åŒãæ°ãããã©ãã€ã ã¯ãããŸãããBashè£å®ãååšãããããTabããŒãæŒãã ãã§ãååãã³ãã³ããããã³/ completionãã©ã«ããŒã«ããzshãšfishã®ãã³ãããã°ããå ¥åã§ããŸã ããã¹ãŠãŒã¶ãŒã®éåžžã«æŽ»çºãªã³ãã¥ããã£ã¯ããã¹èªäœã®æ¡åŒµæ©èœã ãã§ãªããããŸããŸãªãã©ãããã©ãŒã çšã®å€ãã®çããã¯ã©ã€ã¢ã³ããšGUIãäœæããŸããã
ããŒã ãã¹ã«ã€ããŠã¯ãããã¥ã¢ã«ã®ããŒãžã§è©³ãã説æãããŠããŸã ã
ãã¹ã¯ãŒãã¹ãã¬ãŒãžã®äœ¿çšæ¹æ³
ã¹ãã¢å ã®æ¢åã®ãã¹ãŠã®ãã¹ã¯ãŒããäžèŠ§è¡šç€ºã§ããŸãã
zx2c4@laptop ~ $ pass Password Store âââ Business â âââ some-silly-business-site.com â âââ another-business-site.net âââ Email â âââ donenfeld.com â âââ zx2c4.com âââ France âââ bank âââ freebox âââ mobilephone
ãã¹ã¯ãŒãã衚瀺ããããšãã§ããŸãã
zx2c4@laptop ~ $ pass Email/zx2c4.com sup3rh4x3rizmynam3
ãŸãã¯ãã¯ãªããããŒãã«ã³ããŒããŸãã
zx2c4@laptop ~ $ pass -c Email/zx2c4.com Copied Email/jason@zx2c4.com to clipboard. Will clear in 45 seconds.
ãã¹ãŠã®ãã¹ã¯ãŒãã¯æå·åãããŠããããããã¹ã¯ãŒããå ¥åããããã®äŸ¿å©ãªãã€ã¢ãã°ããæšæºã®gpgãšãŒãžã§ã³ãïŒæ°åéã»ãã·ã§ã³ãç¶æããããã«æ§æã§ããŸãïŒã䜿çšããŠè¡šç€ºãããŸãã
æ¿å ¥ã䜿çšããŠãæ¢åã®ãã¹ã¯ãŒããã¹ãã¢ã«è¿œå ã§ããŸãã
zx2c4@laptop ~ $ pass insert Business/cheese-whiz-factory Enter password for Business/cheese-whiz-factory: omg so much cheese what am i gonna do
ãã®é¢æ°ã¯ã-multilineãŸãã¯-mã䜿çšããŠãè€æ°è¡ã®ãã¹ã¯ãŒããŸãã¯ãã®ä»ã®ããŒã¿ã§ãæ©èœããŸãããã¹ã¯ãŒãã¯ãpass editpass-nameã䜿çšããŠããã©ã«ãã®ããã¹ããšãã£ã¿ãŒã§ç·šéã§ããŸãã
ãŠãŒãã£ãªãã£ã¯ã/ dev / urandomã䜿çšããŠæ°ãããã¹ã¯ãŒããçæã§ããŸãã
zx2c4@laptop ~ $ pass generate Email/jasondonenfeld.com 15 The generated password to Email/jasondonenfeld.com is: $(-QF&Q=IN2nFBx
--no-symbolsãŸãã¯-nã䜿çšããŠèšå·ãªãã®ãã¹ã¯ãŒããçæãã-clipãŸãã¯-cã䜿çšããŠã³ã³ãœãŒã«ã«è¡šç€ºãã代ããã«ãã¯ãªããããŒãã«ã³ããŒããããšãã§ããŸãã
ãã¡ããããã¹ã¯ãŒããåé€ããããšãã§ããŸãã
zx2c4@laptop ~ $ pass rm Business/cheese-whiz-factory rm: remove regular file â/home/zx2c4/.password-store/Business/cheese-whiz-factory.gpgâ? y removed â/home/zx2c4/.password-store/Business/cheese-whiz-factory.gpgâ
ãã¹ã¯ãŒããªããžããªãgitãªããžããªã®å Žåãåæäœã§git commitãäœæãããããããã¹ã¯ãŒããªããžããªãpass gitpushããã³passgit pullãšåæã§ããŸãããããã¯ããªããžããªã§git-pushãŸãã¯git-pullãåŒã³åºããŸãã
ããªãã¯ããã§ããå€ãã®äŸãšé¢æ°ãèªãããšãã§ã ãŸãã
ã«ã¹ã¿ãã€ãº
ãŸãããã¹ã¯ãŒãã¹ãã¢ãåæåããã³ãã³ãã1ã€ãããŸãã
zx2c4@laptop ~ $ pass init "ZX2C4 Password Storage Key" mkdir: created directory â/home/zx2c4/.password-storeâ Password store initialized for ZX2C4 Password Storage Key.
ããã§ãZX2C4ãã¹ã¯ãŒãã¹ãã¬ãŒãžããŒã¯GPGããŒã®IDã§ããäžèšã®ããã«ãæšæºã®GPGããŒã䜿çšããããšãããã¹ã¯ãŒãã¹ãã¬ãŒãžå°çšã®ä»£æ¿ããŒã䜿çšããããšãã§ããŸããã°ã«ãŒãå ã§ãã¹ã䜿çšããããã«è€æ°ã®GPGããŒãæå®ã§ãã-pã䜿çšããŠãã©ã«ããŒããšã«ç°ãªãGPGããŒãæã€ããšãã§ããŸãã
ãªãã·ã§ã³ã§ããã¹ã¯ãŒãã¹ãã¢ãgitãªããžããªãšããŠåæåã§ããŸãã
zx2c4@laptop ~ $ pass git init Initialized empty Git repository in /home/zx2c4/.password-store/.git/ zx2c4@laptop ~ $ pass git remote add origin kexec.com:pass-store
gitãªããžããªãåæåãããŠããå Žåãpassã¯ããã¹ã¯ãŒãã¹ãã¢ãæäœããããã³ã«ããã®gitãªããžããªå ã«ã³ããããäœæããŸãã
ããã¥ã¢ã«ããŒãžã«åæåã®ãã詳现ãªäŸããããŸã ã
ãã¹ãããŠã³ããŒã
çŸåšã®ããŒãžã§ã³ã¯1.7.3ã§ãã
Ubuntu / Debian
$ sudo apt-get install pass
Fedora / RHEL
$ sudo yum install pass
openSUSE
$ sudo zypper in password-store
Gentoo
# emerge -av pass
Arch
$ pacman -S pass
Macintosh
ãã¹ã¯ãŒãããŒã«ãã¯ãHomebrewããã±ãŒãžãããŒãžã£ãŒããå ¥æã§ããŸã ïŒ
$ brew install pass
FreeBSD
# portmaster -d sysutils/password-store
Tarball
ã¢ãŒã«ã€ãã«ã¯äžè¬çãªmakefileãå«ãŸããŠãããåçŽãªsudo makeinstallã³ãã³ãã§ååã§ãã
Gitãªããžã㪠gitãªããžããª
ãåç §ãããããªããžããªã®ã¯ããŒã³ãäœæã§ã ãŸãã
$ git clone https://git.zx2c4.com/password-store
ãã¹ãŠã®ãªãªãŒã¹ã«ã¯ã0xA5DE03AEã®ã¿ã°ãä»ããããŠããŸãã
ããŒã¿ç·šæ
ãŠãŒã¶ãŒåããã¹ã¯ãŒããPINãWebãµã€ããã¡ã¿ããŒã¿ãªã©
ãã¹ã¯ãŒãã¹ãã¢ã¯ãä»»æã®ããŒã¿ãå«ããããšãã§ããåãªãããã¹ããã¡ã€ã«ã§ãããããããŒã¿ã«ç¹å®ã®ã¹ããŒã ãçµç¹ã®çš®é¡ãå¿ èŠãšããŸãããæãäžè¬çãªã±ãŒã¹ã¯ããšã³ããªããšã«1ã€ã®ãã¹ã¯ãŒããä¿åããããšã§ãããäžéšã®ãã¯ãŒãŠãŒã¶ãŒã¯ãèªåã®ãã¹ã¯ãŒãã ãã§ãªããã»ãã¥ãªãã£ã®è³ªåãžã®åçãWebãµã€ãã®URLãããã³ãã®ä»ã®æ©å¯æ å ±ããã¹ã¯ãŒãã¹ãã¢ã«ä¿åããããšã決å®ããŸãããŸãã¯ã¡ã¿ããŒã¿...ããã¹ã¯ãŒãããŒã«ãã¯ç¬èªã®ã¹ããŒã ãå¿ èŠãšããªããããçµç¹ãéžæã§ããŸããå€ãã®æå¹ãªæ§é ããããŸãã
1ã€ã®ã¢ãããŒãã¯ãè€æ°è¡ãã¹é¢æ°ïŒæ¿å ¥ã§ã¯--multilineãŸãã¯-mïŒã䜿çšãããã¹ã¯ãŒãèªäœããã¡ã€ã«ã®æåã®è¡ã«æ ŒçŽããåŸç¶ã®è¡ã«è¿œå æ å ±ãæ ŒçŽããããšã§ããããšãã°ãAmazon /ããã¯ãªãŒããŒã¯æ¬¡ã®ããã«ãªããŸãã
Yw|ZSNH!}z"6{ym9pI URL: *.amazon.com/* Username: AmazonianChicken@example.com Secret Question 1: What is your childhood best friend's most bizarre superhero fantasy? Oh god, Amazon, it's too awful to say... Phone Support PIN #: 84719
ããã¯ãäœæè ã䜿çšããæšå¥šãããçµç¹å³ã§ãã
--clip / -cãªãã·ã§ã³ã¯ããã®ãããªãã¡ã€ã«ã®æåã®è¡ã®ã¿ãã¯ãªããããŒãã«ã³ããŒãããããåããã¡ã€ã«ã«è¿œå æ å ±ãä¿åããªããããã°ã€ã³ãã©ãŒã ã®ãã¹ã¯ãŒããç°¡åã«ååŸã§ããŸãã
å¥ã®ã¢ãããŒãã¯ããã©ã«ããŒã䜿çšããŠããã®ãã©ã«ããŒå ã®ãã¡ã€ã«å ã®åããŒã¿ãä¿åããããšã§ããããšãã°ãAmazon / bookreader / passwordã«ã¯Amazon / bookreaderãã£ã¬ã¯ããªå ã®ãªãŒããŒã®ãã¹ã¯ãŒããå«ãŸããAmazon / bookreader / secretquestion1ã«ã¯ç§å¯ã®è³ªåãå«ãŸããAmazon / bookreader / sensitivecodeã«ã¯ãªãŒããŒã®ã¢ã«ãŠã³ãã«é¢é£ããä»ã®äœããå«ãŸããŸãã ããã¹ã¯ãŒããAmazon / bookreaderã«ä¿åããè¿œå ããŒã¿ãAmazon /bookreader.metaã«ä¿åããããšãã§ããŸãããŸããå¥ã®ã¢ãããŒããšããŠãäžèšã®ããã«è€æ°è¡ã䜿çšããããšãã§ããŸããããã¡ã€ã«å ã§ã¯ãªããã¡ã€ã«åã«URLãã¿ãŒã³ãé 眮ããŸãã
å šäœãšããŠãããã§ã®å¯èœæ§ã¯éåžžã«å€ããäžèšã«èšèŒãããŠããªãä»ã®å€ãã®çµç¹å³ããããŸããã¯ãŒã¯ãããŒã«æé©ãªãã®ãèªç±ã«éžæã§ããŸãã
æ¡åŒµæ©èœãã¹ããããã
ãŠãŒã¶ãŒãããŸããŸãªãŠãŒã¹ã±ãŒã¹ãç°¡åã«å®è£ ã§ããããã«ããããã«ãpassã¯æ¡åŒµæ©èœããµããŒãããŠããŸãã/ usr / lib / password-store /æ¡åŒµæ©èœïŒãŸãã¯ãããã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã«äŸåãããã¬ãŒããŒïŒã«ã€ã³ã¹ããŒã«ãããŠããæ¡åŒµæ©èœã¯åžžã«å«ãŸããŠããŸãããŸããPASSWORD_STORE_ENABLE_EXTENSIONSç°å¢å€æ°ãtrueã®å Žåãã/ .password-store / .extensions /COMMAND.bashã«ã€ã³ã¹ããŒã«ãããŠããæ¡åŒµæ©èœãæå¹ã«ãªããŸãã詳现ã«ã€ããŠã¯ããåç §ããŠãã ãããããŒãž ã¬ã€ãã
ã³ãã¥ããã£ã¯ãããã®æ¡åŒµæ©èœã®å€ããäœæããŸããïŒ
- pass-tombïŒTOMBã§ã®ãã¹ã¯ãŒãã¹ãã¬ãŒãžã®ç®¡ç
- pass-updateïŒãã¹ã¯ãŒããæŽæ°ããããã®ç°¡åãªããã»ã¹
- pass-importïŒä»ã®ãã¹ã¯ãŒããããŒãžã£ãŒããã€ã³ããŒãããããã®å€ç®çãªããŒã«
- pass-extension-tailïŒãã¡ã€ã«ã®æ«å°Ÿã®ã¿ãå°å·ããæ¹æ³
- pass-extension-wclipïŒWindowsã§wclipã䜿çšããããã®ãã©ã°ã€ã³
- pass-otpïŒã¯ã³ã¿ã€ã ãã¹ã¯ãŒãïŒOTPïŒããŒã¯ã³ã®ãµããŒã
äºææ§ã®ããã¯ã©ã€ã¢ã³ã
ãã¹ã³ãã¥ããã£ã¯ãããŸããŸãªãã©ãããã©ãŒã çšã®ã¯ã©ã€ã¢ã³ããšGUIã®å°è±¡çãªãªã¹ãããŸãšããŸããã
- passmenuïŒéåžžã«äŸ¿å©ã§çŽ æŽãããdmenuã¹ã¯ãªãã
- qtpassïŒã¯ãã¹ãã©ãããã©ãŒã ã®GUIã¯ã©ã€ã¢ã³ã
- Android-ãã¹ã¯ãŒã-ã¹ãã¢ïŒAndroidã¢ããª
- passforios: iOS
- pass-ios: () iOS
- passff: Firefox
- browserpass: Chrome
- Pass4Win: Windows
- pext_module_pass: Pext
- gopass: Go
- upass:
- alfred-pass:
- pass-alfred:
- pass.applescript: OS X
- pass-git-helper: git
- password-store.el: emacs
- XMonad.Prompt.Pass: Xmonad
pass
ä»ã®ïŒè¥å€§åããïŒãã¹ã¯ãŒããããŒãžã£ãŒã®æãããã¹ã¯ãŒãããŒã¿ã解æŸããããã«ãããŸããŸãªãŠãŒã¶ãŒããèªåã«æé©ãªããŸããŸãªãã¹ã¯ãŒãã¹ãã¬ãŒãžçµç¹ãèãåºããŸãããäžéšã®ãŠãŒã¶ãŒã¯ãä»ã®ããã°ã©ã ãããã¹ã¯ãŒããã€ã³ããŒãããã®ã«åœ¹ç«ã€ã¹ã¯ãªãããæäŸããŠããŸãã
- 1password2pass.rbïŒ1PasswordtxtãŸãã¯1pifããŒã¿ãã€ã³ããŒãããŸã
- keepassx2pass.pyïŒKeepassXXMLããŒã¿ãã€ã³ããŒãããŸã
- keepass2csv2pass.pyïŒKeepass2CSVããŒã¿ãã€ã³ããŒãããŸã
- keepass2pass.pyïŒKeepass2XMLããŒã¿ãã€ã³ããŒãããŸã
- fpm2pass.plïŒFigaroãã¹ã¯ãŒããããŒãžã£ãŒã®XMLããŒã¿ãã€ã³ããŒãããŸãã
- lastpass2pass.rbïŒLastpassCSVããŒã¿ãã€ã³ããŒãããŸã
- kedpm2pass.pyïŒKed PasswordManagerããŒã¿ãã€ã³ããŒãããŸã
- revelation2pass.py: Revelation Password Manager
- gorilla2pass.rb: Password Gorilla
- pwsafe2pass.sh: PWSafe
- kwallet2pass.py: KWallet
- roboform2pass.rb: Roboform
- password-exporter2pass.py:
- pwsafe2pass.py: pwsafe
- firefox_decryptgithub.com/Unode/firefox_decrypt/#readme: Firefox,
ãã¹ã¯zx2c4.comã® JasonAãDonenfeldã«ãã£ãŠæžãã ãGPLv2 +ã®äžã§ã©ã€ã»ã³ã¹ãããŠã ãŸãã
è²¢ç®ãã
ããã¯éåžžã«æŽ»çºãªãããžã§ã¯ãã§ããã ããªãã®æ°ã®åå è ãããŸãããã¹ã¯ãŒããªããžããªã«è²¢ç®ããæè¯ã®æ¹æ³ã¯ãã¡ãŒãªã³ã°ãªã¹ãã« åå ãã git圢åŒã§ããããéä¿¡ããããšã§ããFreenodeã®#passãã£ã¹ã«ãã·ã§ã³ã«åå ããããšãã§ããŸãã
åœç€Ÿã® ãµãŒããŒã¯ãããããæ å ±ã®ä¿åã«äœ¿çšã§ããŸãã
äžèšã®ãªã³ã¯ã䜿çšãããããããŒãã¯ãªãã¯ããŠç»é²ãããšãä»»æã®æ§æã®ãµãŒããŒãã¬ã³ã¿ã«ããæåã®æã10ïŒ å²åŒã«ãªããŸãã