Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are GUIDs good passwords? [closed]

Tags:

security

guid

Pros:

  1. I can't remember "good" passwords anyway so remembering them is not an issue.
  2. they don't look like passwords
  3. they are darn near impossible to guess (128 bits of entropy)
  4. easy to generate (offloads the "good PRNG" problem)

Cons:

  1. ???

In particular; what about for passwords that computers enter like for databases logins on some setups.

like image 286
BCS Avatar asked Apr 29 '09 21:04

BCS


People also ask

Is it safe to use GUID as password?

For example, one person wondered whether it was okay to use the first eight characters of a GUID as a temporary account password. This is a really bad idea. GUIDs are designed for uniqueness, not for security.

Is it possible to brute force a GUID?

So as long as nobody knows that you use a GUID, the password is harder to crack. Once the attacker knows that he is seeking a GUID, the effort needed for a brute force attack reduces. From that point of view, it is security by obscurity.

Can GUIDs be guessed?

GUIDs are guaranteed to be unique and that's about it. Not guaranteed to be be random or difficult to guess.

Is GUID truly random?

Definitely not random. Similarly, the person who wanted to use a GUID for password generation would find that the passwords are totally predictable if you know what time the GUID was generated and which computer generated the GUID (which you can get by looking at the final six bytes from some other password-GUID).


2 Answers

One major con is that you don't necessarily have "128 bits of entropy" as stated in the original question.

Many GUID Algorithms have information embedded in them in predictable patterns, for example the MAC address of the computer, the date/time, or an incrementing sequence. Cryptanalysis of the WinAPI GUID has shown given the initial state one can predict up to next 250,000 GUIDs returned by the function UuidCreate

For example, I have about a 50% chance of guessing the first digit in the first position of the third group of digits since it will be either 1 (for V1 guids) or 4 (for V4 guids)

Source: http://en.wikipedia.org/wiki/Globally_Unique_Identifier

like image 133
JohnFx Avatar answered Oct 17 '22 23:10

JohnFx


Cons:

  1. You will write them down somewhere.
  2. You will probably email them, or write them down again if you need to tell anyone else.
  3. They may be too long for certain systems.
  4. They're practically impossible to memorize, so you might change them more frequently then desired.

So unless they're system passwords which change rarely, I doubt they are good passwords.

like image 37
Bravax Avatar answered Oct 17 '22 21:10

Bravax