为了管理我的密码,我写了一个小的bash/awk脚本用来管理一个密码数据库并使用GnuPG进行加密。使用pwgrep的好处是:
密码加密密码版本化,不用担心丢失老密码Sinceaversioningsystemisused,thepassworddatabasecanbeusedonseveralhostsatonce(automaticsynchronization).Evenseveralusercansharethesamepassworddatabase.Theversioningsystemwillkeeptrackofwhowaschangingwhichentriesandatwhichtime.Theversioningsystemtousecanbeconfigured(Subversionbydefault)Besidesofpasswords,pwgrepcanalsobeusedforstoringacollectionoffileslikecertificatesThefileshreddingcommandforsecuredeletingoftemporaryfilescanbeconfigured(shredonLinuxanddestroyorrm-PonFreeBSDbydefault)Automaticlocalbackupofalldatabasechanges(Stillaccesstoolddataaftereditingthepassworddatabaseandthenetworkconnectiontotheversioningsystemisnotaccessible)NoneedofaGUI(canbeusedthroughaSSHsession)UsingonlyopensourcesoftwareRunningonall*NIXandalikesystemsVeryeasyandstraightforwardtouse
评论