Base solution for your next web application
Open Closed

Encrypt/hash stuff for storage and retrieval? #2884


User avatar
0
DennisAhlin created

Hi! I need to store some login credentials (username/password) to external services (like FTP accounts) that my users can enter. Therefore I need to store these in the database, but of course not in plain text, so I need to encrypt it in some way so that I can decrypt them later and use them to access the FTP account from my server. Is there a utility for this in ABP or Zero? I figured user passwords are hashed by Identity.IPasswordHasher, but as far as I can tell, those passwords are not retrievable (as they should), so that's not an option.

Regards.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for the late response, I have missed it somehow. In ABP there is a class called SimpleStringCipher, you can use it for your case.

    Thanks.