Decrypt C # string

My company is in the process of transitioning to the website only from a third party. We rewrote the website, and the last step is to import existing users. We have a database with users and their passwords. We were also given a “key” and told that the password field is encrypted using AES encryption.

I need to decrypt passwords and then re-encrypt them in a new database using my company key. Using .Net, how can I decrypt passwords with just a key? All the samples I've seen require information like BlockSize, InitializationVector, KeySize, etc. I do not have this information.

thanks

+3
source share
4 answers

BlockSize and KeySize with which you can play (they are a multiple of 8 IIRC).

Not sure about initialization vector. It may be all 0, but to verify this you will need at least 1 correctly decrypted password.

Good luck. :)

0
source

It just seems wrong ... Passwords are usually not encrypted, they are hashed. In this case, you cannot restore the original passwords.

Is there a way to look at the source code to see how passwords are generated?

+1
source

, , , , reset ?

.

+1

IV, , , , , , , , ( AES - 128 ).

:

  • IV
  • , , , IV ( ), , , -
  • <
0

Source: https://habr.com/ru/post/1704670/


All Articles