Questions tagged [passwords]
Passwords are secret keys which human beings can memorize.
505
questions
1
vote
1
answer
198
views
Do all PAKE assume that all parties already have a password?
I was looking for a means to perform a key exchange without relying on a PKI. I discovered Password Authenticated Key Exchange (PAKE) and after reading J-PAKE; I have the following questions:
Do PAKE ...
2
votes
2
answers
2k
views
Just how insecure are VeraCrypt containers encrypted with short passwords?
When I create a VeraCrypt file container using the GUI, it displays a warning whenever I type in a password under a given number of characters. I was wondering just how insecure, in practical terms, ...
0
votes
1
answer
615
views
how many iterations of SHA3 (keccak256) hashing would be required to provide reasonable protection for the following data structure?
((A , B , C) , (D , E , F, G, H))
Where:
A is 0x0-0xF, (1 of 16)
B is 0x00-0xFF (1 of 256)
C is an 8 digit integer
D is a one of a list of one hundred words padded to 12 characters
E is a one ...
1
vote
1
answer
68
views
Secure password reset
In my model I use two different keys, one for authentication and the other for the encryption / decryption of the data that the user saves, each derived from the master password with a KDF function.
...
3
votes
2
answers
448
views
How much entropy do I need to add to passwords if they are NOT used in conjunction with logins
I'm building a system to authenticate users to a website via a single use login token. This token can either be included in links OR typed in directly by the user as a code. Because of that second ...
0
votes
2
answers
205
views
For uniterated SHA-256 of salted password, should the password precede the salt?
This is a follow-up to this question (thanks to answers from @fgrieu and @kelalaka
) about the format of a salt when hashing a salted password.
I realize this is pretty much academic, as the proposed ...
1
vote
2
answers
519
views
What format should a salt be when it is concatenated with the password?
Assume that, in the available environment, it is not possible to use modern password hashing functions (bcrypt, scrypt, Argon2, PBKDF2, etc.), so it is necessary to roll my own stand-in, until they ...
2
votes
1
answer
381
views
Does pepper *require* an HMAC?
Assume you are already given a properly-salted, password hash $X$ from some slow PBKDF (e.g., like Argon2id).
Now, you want to apply some large (~256-bit) secret "pepper" $S$ to it before storing it ...
1
vote
0
answers
100
views
Signal Key Stretching Regarding Their Blog Post
I just read this blog post (Signal - Technology Preview for secure value recovery) by Signal and something is not quite clear to me. In section "Stretching beyond a KDF" they generate a ...
2
votes
1
answer
798
views
Is it safe to reuse the same nonce for decryption an indefinite amount of times in this context?
I'm creating a password management application and I'm considering using the following procedure to keep passwords safe:
Asking the user for raw_password, for ...
2
votes
5
answers
427
views
How passwords are fed to key derivation functions?
Suppose I want to encrypt data, send it over the network, and decrypt it on the receiver side.
I know the elegant way to do this is by using a symmetric key to encrypt the data and an asymmetric key ...
6
votes
6
answers
7k
views
Are longer passwords really safer against brute force attacks?
If we take two password strings of different length and attempt to bruteforce match them, it is obvious that the longer one will take longer to crack on average. However if we assume that when ...
2
votes
1
answer
94
views
Choosing between hash functions instead of providing a salt for a password hash
I am working on some programs that require the users to store their passwords in my databases.
However, due to the fact that I am not sure whether salt should be stored in databases due to my ...
3
votes
1
answer
431
views
How slow is the hash used for Mac FileVault encryption?
Certain password strength estimators (for instance, zxcvbn) give estimates that vary with the speed of the hash and the assumed resources of the attacker. I am curious what hash is used by the MacOS ...
1
vote
3
answers
2k
views
How to securely store and validate a 4-digit PIN used on a mobile device?
I want to be able to securely (1) create and (2) validate a PIN, typed by a user primarily in a mobile app. There is no 'typical' password, although there is another 2nd factor.
The starting point ...
0
votes
1
answer
72
views
Two party protocol using only hash function
I have been told by my professor to compare two passwords as we do it in Yao's two-party protocol but without using any crypto functions. We are only allowed to use a hash function. The passwords are ...
1
vote
1
answer
157
views
PAKE password change
Is there any way to change a password using a PAKE-like algorithm, without the server getting the plaintext of either the old or new password?
0
votes
2
answers
754
views
Is it safe to use a deterministic salt as an input to KDF (Argon2)?
I'm prototyping an app that uses client-side password hashing in order to hide the "real" account password from a server (the server hashes any recieved password anyway, so no plaintext records in the ...
3
votes
1
answer
2k
views
What's the algorithm behind MySQL's sha256_password hashing scheme?
MySQL's old mysql_native_password hashing scheme was the equivalent of this in PHP:
sha1(sha1('password', true));
That's a ...
0
votes
0
answers
313
views
BIP32 Extended Key to EC Private and Public Key Pair
We are working on an application in Android using Java. In our project, we used to generate EC key pairs (of size 384 bits) using SpongyCastle - an old Android version of Bouncy Castle.
The problem ...
2
votes
0
answers
7k
views
After downloading the Breach Compilation.torrent, how do I properly introduce new breach lists? [closed]
So I downloaded the Breach Compilation (the 1.4 billion usernames w/ respective passwords). When doing so, the friendly dev-like homies they are over @ github where the .torrent file for the latter is ...
8
votes
4
answers
14k
views
How hard is it to guess a 8 digit PIN?
Say that there are different live situations where you have to select own PIN numbers.
Can someone say if it is possible to guess a 8 digit pin within 3 tries, given any methods or resources?
Is ...
1
vote
0
answers
323
views
What is the formula to calculate password entropy? [closed]
I saw in another thread: Is using 7-8 random words from all words of a language as password a good idea?
These calculations:
If we assume that English has 171,476 words. Then with 8 words the ...
1
vote
2
answers
95
views
Advice in password auto-generation
I'm creating a program with key access for a determined term. I've made a code that will generate a key (password) with 16 characters length. The following information is encoded:
initial date 6 ...
1
vote
3
answers
104
views
Is there a ready report about character order frequency in most common passwords?
There are charts about most used letters in English. What about the letter order? For example letter X has a bigger chance to appear than letter Y as the first character and something else for the 2nd ...
1
vote
1
answer
67
views
Is there a way to generate a password from another but those 2 will have no relation?
For example I have the password X and I want to encrypt 2 different things. Even if one of them was stolen due to a keylogger, other will be completely safe. I wonder how safe something like this ...
5
votes
2
answers
2k
views
Is using 7-8 random words from all words of a language as password a good idea?
The Bitcoin Bip-39 dictionary has 2048 words. And a random 24 of them are pretty secure together. What if the source is bigger (all words in the language) but there are only about 7-8 words? These ...
0
votes
1
answer
952
views
migrate bcrypt -> argon2
We want to migrate our userbase from bcrypt to argon2.
I was planning on an approach that migrates all hashes immediately to argon2; "old" users would have an argon2'd hash of their bcrypt hash of ...
1
vote
1
answer
707
views
XChacha20poly1305 vulnerability to known plaintext attacks
During a security audit, the guy said our cryptosystem is vulnerable to known-plaintext attacks. He said that's because «the implementation uses a crypto_stream_xor() approach» (from libsodium). That'...
0
votes
1
answer
154
views
Password to password mapping
DISCLAIMER: I understand the question might be a bit amateurish due to my limited knowledge of cryptography but, please, bear with me for a minute.
QUESTION: Suppose a user Alice generates a pass ...
1
vote
1
answer
380
views
Generating nicer diceware passwords without losing entropy
Yes, another one of those "I have found a great password-generation strategy" waiting to be shot down!
It seems that although diceware aims to be a secure and user-friendly password generation ...
-3
votes
1
answer
47
views
just a question regarding passwords .computing the possibilities for a numerical PIN [closed]
How many possibilities for a numerical PIN with exactly 9 digits? How
about a PIN with no more than 9 digits?
2
votes
3
answers
520
views
Does the use of English words weaken diceware passphrases [duplicate]
A Diceware passphrase is constructed from a set of words chosen from a 7776-word database, using five dice throws to choose each word. The argument is that each word in the phrase adds about 12.92 ...
2
votes
5
answers
390
views
Why are password database breaches bad if cryptographic hashes can't be reversed?
If companies such as Facebook store our passwords as hashes, when they are leaked how can this be a threat to the users? I thought of it because nowadays we do not have computational power to break ...
2
votes
1
answer
172
views
pwd-hash like algorithm which can be computed on paper
"Common password problem" is well known problem, when user uses one password for many resources (web sites, logins to computers, etc...) For example, if one web site loses it' database, ...
2
votes
1
answer
89
views
About the security of GnuPG private key on-disk storage
GnuPG on-disk storage of secret key material is encrypted with AES-128, with an encryption key generated via an iterated and salted SHA-1 hash of the given passphrase.
Is this usage of the SHA-1 hash ...
0
votes
0
answers
108
views
Digital Signature Password verification
I currently have this TOFU protocol:
First connection:
Client generates salt and inputs a password
Client saves salt
Client hashes password with argon2 and salt
Client generates Ed25519 keys
Client ...
3
votes
2
answers
3k
views
Is using quantum computing to break passwords non-sense?
I understand the concept of 'trying all possibilities at once' but can anyone explain this with respect to the fact that my PC only accepts one password at a time? There's no input field that accepts ...
-1
votes
2
answers
3k
views
How to validate a PBKDF2 password
I want to encrypt several files correctly with a PBKDF2 generated key (using a password and salt), I am currently doing so but if I enter the wrong password, as expected an exception occurs.
Note: ...
2
votes
2
answers
1k
views
PBKDF and Entropy
We all regularly use password based, key derivation functions, however something that strikes me as counter intuitive is how PBKDF can somehow "stretch" the entropy of a supplied password to generate ...
3
votes
1
answer
99
views
I don't want to store passwords, can I use them as an encryption key for another field?
I'm not a 'cryptographic' anything, so if this is a super-dumb question please let me know (politely).
So here's the deal, say I don't want to store passwords because that opens me up to all sorts of ...
0
votes
2
answers
228
views
Can an attacker exploit the nonuniform distribution of letters in a diceware password to improve a brute force search?
I use some diceware pass phrases in some places but I have one question that I can't find the answer to.
Let's say I roll the dice and get $N$ words with a total of $M$ letters and that I don't put ...
-1
votes
1
answer
507
views
Brute forcing/hacking Secure passphrases - difficulty for random strings vs real words
I was wondering about this topic of brute forcing passwords,or ANY other way to deriving them - and asking myself whats more secure (relatively):
A Password which includes
A) 30 digits length- a ...
0
votes
0
answers
163
views
Time-based decryption service
i am thinking about building a public crypto service, yet at the same time, I am still quite new to crypto and therefore prone to snake-oil inventions I guess.
My plan is to build a website which ...
-1
votes
2
answers
152
views
Can you encrypt a 256bit password with a 256bit key so that it cannot be bruteforced?
Lets say we have an arbitrary but dictionary attackable password that is less than 256bit. (Lets just say the password is '1234Password').
We encrypt this password with a securely random 256bit key ...
0
votes
1
answer
353
views
Storing passwords in a publicly available database
I have a public database where users need to store configuration files. The file can contain passwords. Everyone can read config files but only the server can read passwords in them.
In the browser, ...
2
votes
2
answers
250
views
Authentication without decrypting the password?
To my knowledge it works like this:
The server receives the username-password values over a secure & encrypted channel.
The username-password values are decrypted in the server and are present as ...
0
votes
2
answers
724
views
Best practices for saving encrypted user data without a database
We are setting up a web application which requires users to submit sensitive data. Since entering all the required data may take a long amount of time, we want to give them the option to save their ...
3
votes
1
answer
282
views
What is the most secure way to check that a given masterkey is valid?
For the purposes of learning, I'm writing a small utility that allows encrypting a list of passwords using a single master key (using AES-256 and PBKDF2)
Before encrypting or decrypting any password ...
-1
votes
1
answer
208
views
How many bits should I request from PBKDF2 to create a strong password?
I'm building a tool which generates passwords by hashing a service name with a master key. PBKDF2 was primarily chosen due to availability in the Web Crypto API.
What would be a secure value for the ...