Merge pull request #11805 from geoffw0/references

Swift: Add a reference for swift/hardcoded-key.
This commit is contained in:
Jeroen Ketema
2023-01-04 16:39:24 +01:00
committed by GitHub

View File

@@ -14,4 +14,8 @@
<p>The following example shows a few cases of instantiating a cipher with various encryption keys. In the 'BAD' cases, the key material is hardcoded, making the encrypted data vulnerable to recovery. In the 'GOOD' cases, the key material is randomly generated and not hardcoded, which protects the encrypted data against recovery.</p>
<sample src="HardcodedEncryptionKey.swift" />
</example>
<references>
<li>OWASP: <a href="https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html">Key Management Cheat Sheet</a></li>
</references>
</qhelp>