O KeePass possui uma chave mestra interna permanente para criptografar dados?

-1

O KeePass tem uma chave interna permanente para criptografar dados? Ou a chave para criptografia é uma senha (e keyfile)? Em algum site eu tenho visto a discusstion sobre maneiras de hackear a base do KeePass. Uma das suposições era que existem duas maneiras: uma para forçar a passphrase e outra para reforçar a chave master criptografada. Existe realmente uma chave mestra interna permanente para criptografia de dados?

    
por Cryptor 16.07.2016 / 17:47

1 resposta

2

Depois de ler este artigo , parece que alguns bytes aleatórios são realmente gerados, mas apenas com o objetivo de concluir chave completa de 256 bits:

In order to generate the 256-bit key for the block ciphers, the Secure Hash Algorithm SHA-256 is used. This algorithm compresses the user key provided by the user (consisting of password and/or key file) to a fixed-size key of 256 bits. This transformation is one-way, i.e. it is computationally infeasible to invert the hash function or find a second message that compresses to the same hash.

The recently discovered attack against SHA-1 [2] doesn't affect the security of SHA-256. SHA-256 is still considered as being very secure [3].

Key Derivation:

If only a password is used (i.e. no key file), the password plus a 128-bit random salt are hashed using SHA-256 to form the final key (but note there is some preprocessing: Protection against Dictionary Attacks). The random salt prevents attacks that are based on pre-computed hashes.

When using both password and key file, the final key is derived as follows: SHA-256(SHA-256(password), key file contents), i.e. the hash of the master password is concatenated with the key file bytes and the resulting byte string is hashed with SHA-256 again. If the key file doesn't contain exactly 32 bytes (256 bits), they are hashed with SHA-256, too, to form a 256-bit key. The formula above then changes to: SHA-256(SHA-256(password), SHA-256(key file contents)).

Portanto, concluo que não existe chave mestra interna. Quando a senha do usuário (e o arquivo de chave) é alterada, a base de senha é novamente criptografada com uma nova chave.

    
por 16.07.2016 / 21:29

Tags