Comments (6)
See passphrase-time branch.
from tarsnap.
note to self: this is not aimed at 1.0.36.
from tarsnap.
So in lib/keyfile/keyfile.h
, it says:
/**
* keyfile_write(filename, machinenum, keys, passphrase, maxmem, cputime):
* Write a key file for the specified machine containing the specified keys.
* If passphrase is non-NULL, use up to cputime seconds and maxmem bytes of
* memory to encrypt the key file.
*/
int keyfile_write(const char *, uint64_t, int, char *, size_t, double);
I'm not certain how to interpret "use up to" (in computing terms; obviously I understand the English).
With 8a3a352, I see this:
$ time ./tarsnap-keygen --keyfile keys-60.txt --user [email protected] --machine gin --passphrase-time 60 --passphrased
Enter tarsnap account password:
Please enter passphrase for keyfile encryption:
Please confirm passphrase for keyfile encryption:
real 0m14.500s
user 0m8.607s
sys 0m0.051s
Obviously it took me a bit of time to enter my password and passphrase, so does --passphrase-time
have a real interpretation in seconds? or does it stop much sooner than 60 seconds because I didn't specify a large memory limit?
from tarsnap.
"use up to" means that the scrypt code tries to figure out how fast your CPU is and picks parameters which it predicts will use that much time. In this case, it clearly underestimated your CPU performance -- possibly because your CPU was clocked down but sped up one it started being used.
from tarsnap.
Addressed in PR #38.
from tarsnap.
Fixed in 89d0340.
from tarsnap.
Related Issues (20)
- tarsnap: Pathname in pax header can't be converted to current locale. HOT 9
- Misleading tarsnap error on negative account balance HOT 5
- lseek (_llseek) issue introduced in 1f56dc7c35b, possibly only on Linux i686 HOT 11
- Workaround for Windows Subsystem for Linux bug with link() HOT 1
- Add support for .gitignore files HOT 2
- escaping bug/typo in tarsnap(1) manpage HOT 1
- Machine name doesn't work with accents ? HOT 5
- master fails to build on old gcc (below version 9) HOT 9
- apt-key is deprecated - update installation instructions HOT 5
- Tarsnap Website Screen Reader Compatibility HOT 3
- Look for tarsnap.conf in ~/.config/tarsnap/ HOT 1
- Optional support for CACHEDIR.TAG files HOT 2
- New release? HOT 2
- Build fails on NetBSD HOT 4
- build: The <sys/sysctl.h> header is deprecated
- False warnings from clang-scan
- tarsnap can be tricked into skipping file using "touch -r" HOT 5
- libressl 3.6 will add `OPENSSL_cleanup()` HOT 1
- Deleting of archives taking up a lot of server -> client bandwidth HOT 6
- workaround for libc/kernel disagreement about whether lchmod exists HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tarsnap.