- Newest
- Most votes
- Most comments
Hey,
Hope you're keeping well.
Amazon Cognito securely stores passwords by hashing them with a unique per-user salt before persistence, ensuring they are never stored in plaintext. AWS does not disclose the exact hashing algorithm, but it meets modern security standards and aligns with compliance requirements such as using SHA‑2 or stronger. You can reference the Cognito password management docs in your compliance documentation, as they confirm salted hashing is implemented.
Thanks and regards,
Taz
Amazon Cognito does not store user passwords in plaintext. Instead, it stores a hash of each user's password with a user-specific salt. This approach ensures that even if the stored data were compromised, the actual passwords could not be retrieved.
While AWS does not publicly disclose the specific hashing algorithm used for passwords in Cognito, the implementation follows industry best practices for password security. The use of user-specific salts prevents rainbow table attacks and significantly enhances security.
As a best practice, AWS recommends not storing plaintext user passwords anywhere in your systems. When users forget their passwords, you should perform password resets rather than attempting to retrieve existing passwords, as this is not possible with Cognito's security model.
For your compliance requirements regarding SHA-2 or stronger hashing with salting, Amazon Cognito's password storage mechanism is designed to meet or exceed industry security standards for authentication systems. The service is used by organizations with stringent security and compliance requirements across various industries.
Sources
Passwords, account recovery, and password policies - Amazon Cognito
answered 10 months ago
Relevant content
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 years ago
