passman

dead simple password manager using state of the art encryption
git clone git://kqueue.dev/passman.git
Log | Files | Refs | README | LICENSE

commit 62cd36ec7e2e916d357ed07302094c1d7a69d1e9
parent b0287201de4cae5748e43d549a8418fb9b765604
Author: kqueue <kqueue@cocaine.ninja>
Date:   Sat, 29 Apr 2023 11:28:56 -0400

Fixed on glibc

Diffstat:
MREADME.md | 3++-
Mpassman.c | 2+-
Mthird-party/arc4random.c | 4++--
Mthird-party/arc4random_uniform.c | 4++--
4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -1,6 +1,7 @@ # Passman: the new standard unix password manager Passman was inspired by [password-store](https://www.passwordstore.org/), but there are some key differences. -Passman is written in C while password-store is written in Bash, and passman uses state of the art cryptography(XChaCha20-Poly1305, Blake2B, Argon2i) while pass uses old and insecure gnupg(see [the pgp problem](https://latacora.micro.blog/2019/07/16/the-pgp-problem.html). It's about as simple as it gets, and extremely secure. +Passman is written in C while password-store is written in Bash, and passman uses state of the art cryptography(XChaCha20-Poly1305, Blake2B, Argon2i) while pass uses old and insecure gnupg(see [the pgp problem](https://latacora.micro.blog/2019/07/16/the-pgp-problem.html). +Passman is about as simple as it gets, and extremely secure. ## Installation Note that passman only runs on Linux and BSD(OpenBSD, FreeBSD, NetBSD, DragonFlyBSD and very likely Macos) `` diff --git a/passman.c b/passman.c @@ -12,8 +12,8 @@ ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUT #include <sys/types.h> #include <sys/stat.h> #include <termios.h> -#include "third-party/monocypher.h" #include <stdint.h> +#include "third-party/monocypher.h" #include <dirent.h> #include "argon2i-settings.h" #if defined(__linux__) diff --git a/third-party/arc4random.c b/third-party/arc4random.c @@ -186,7 +186,7 @@ arc4random(void) _ARC4_UNLOCK(); return val; } -DEF_WEAK(arc4random); +//DEF_WEAK(arc4random); void arc4random_buf(void *buf, size_t n) @@ -195,4 +195,4 @@ arc4random_buf(void *buf, size_t n) _rs_random_buf(buf, n); _ARC4_UNLOCK(); } -DEF_WEAK(arc4random_buf); +//DEF_WEAK(arc4random_buf); diff --git a/third-party/arc4random_uniform.c b/third-party/arc4random_uniform.c @@ -18,7 +18,7 @@ #include <sys/types.h> #include <stdlib.h> - +#include <stdint.h> /* * Calculate a uniformly distributed random number less than upper_bound * avoiding "modulo bias". @@ -54,4 +54,4 @@ arc4random_uniform(uint32_t upper_bound) return r % upper_bound; } -DEF_WEAK(arc4random_uniform); +//DEF_WEAK(arc4random_uniform);