AnonymousSpottedToad/securityPatternsRecovery / security_patterns /authentication_pwd /03_subflows.md
| # Password-based authentication — sub-flows | |
| ## Password-based authentication | |
| _Edge prefix: `1`_ | |
| ```mermaid | |
| sequenceDiagram | |
| participant Subject | |
| participant Enforcer | |
| participant VerificationManager as Verification manager | |
| participant PasswordStore as Password store | |
| participant Hasher | |
| participant PepperStore as Pepper store | |
| participant Encrypter | |
| participant Comparator | |
| participant System | |
| Subject->>Enforcer: 1: action(id, pwd[, args]) | |
| Enforcer->>VerificationManager: 2: verify(id, pwd) | |
| VerificationManager->>PasswordStore: 3: get_pwd(id) | |
| PasswordStore-->>VerificationManager: 4: (salt, stored_pwd)/error | |
| VerificationManager->>Hasher: 5: calculate_hash(salt, pwd) | |
| Hasher-->>VerificationManager: 6: hash(salt, pwd) | |
| VerificationManager->>PepperStore: 7: get_pepper(id) | |
| PepperStore-->>VerificationManager: 8: pepper | |
| VerificationManager->>Encrypter: 9: encrypt(pepper, hash(salt, pwd)) | |
| Encrypter-->>VerificationManager: 10: {hash(salt, pwd)}_pepper | |
| VerificationManager->>Comparator: 11: compare(stored_pwd, {hash(salt, pwd)}_pepper) | |
| Comparator-->>VerificationManager: 12: yes/no | |
| VerificationManager-->>Enforcer: 13: id/error | |
| Enforcer->>System: [ok] 14: action(id[, args]) | |
| Enforcer-->>Subject: [error] 14: error | |
| System-->>Subject: 15: [reply] | |
| ``` | |
Xet Storage Details
- Size:
- 1.35 kB
- Xet hash:
- 21ba7cc32989793c24341f50ee0ad18ba71180d6cfde2228b37387e4f368fb59
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.