<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Password-Manager on My Tech Blog</title><link>https://kocurkovo.cz/tags/password-manager/</link><description>Recent content in Password-Manager on My Tech Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 17 Apr 2023 20:20:20 +0200</lastBuildDate><atom:link href="https://kocurkovo.cz/tags/password-manager/index.xml" rel="self" type="application/rss+xml"/><item><title>Pass and multiple contexts</title><link>https://kocurkovo.cz/posts/pass-and-multiple-contexts/</link><pubDate>Mon, 17 Apr 2023 20:20:20 +0200</pubDate><guid>https://kocurkovo.cz/posts/pass-and-multiple-contexts/</guid><description>&lt;h2 id="work-and-personal-password-store"&gt;Work and Personal password store&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://www.passwordstore.org/"&gt;&lt;strong&gt;pass&lt;/strong&gt; the standard unix password manager&lt;/a&gt; stores passwords in one directory (default one is &lt;code&gt;~/.password-store&lt;/code&gt;). You can create another seprate store by running following command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ PASSWORD_STORE_DIR&lt;span style="color:#f92672"&gt;=&lt;/span&gt;$HOME/.path/to/another/store pass init pgp@key.id
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;New password stores can contain new set of gpg keys.&lt;/p&gt;
&lt;p&gt;For quicker access to new store without using &lt;code&gt;(reverse-i-search)&lt;/code&gt; you can create an alias&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ alias personal_pass&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#39;PASSWORD_STORE_DIR=/home/username/.path/to/another/store pass&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or create a script in folder that is in your &lt;code&gt;$PATH&lt;/code&gt;&lt;br&gt;
&lt;code&gt;~/.local/bin/personal_pass:&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Pass and multiple computers</title><link>https://kocurkovo.cz/posts/pass-and-multiple-computers/</link><pubDate>Mon, 17 Apr 2023 20:00:00 +0200</pubDate><guid>https://kocurkovo.cz/posts/pass-and-multiple-computers/</guid><description>&lt;h2 id="synchronization-by-git"&gt;Synchronization by git&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://www.passwordstore.org/"&gt;&lt;strong&gt;pass&lt;/strong&gt; the standard unix password manager&lt;/a&gt; can be synchronized by a git. If you don&amp;rsquo;t have store yet inicialize it. Inicialization of git is simple as well.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ pass init pgp@key.id
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ pass git init
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After this all password changes make a new commit, to update or get latest data from remote you can use following commands.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ pass git push
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ pass git pull
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>