mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Apply suggestions from code review
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ storing them.</p>
|
||||
|
||||
<sample src="CleartextStorage.c" />
|
||||
|
||||
<p>Note that for the good example to work we need to link against an encryption library (in this case libsodium),
|
||||
<p>Note that for the 'GOOD' example to work we need to link against an encryption library (in this case libsodium),
|
||||
initialize it with a call to <code>sodium_init</code>, and create the key and nonce with
|
||||
<code>crypto_secretbox_keygen</code> and <code>randombytes_buf</code> respectively. We also need to store those
|
||||
details securely so they can be used for decryption.</p>
|
||||
|
||||
@@ -20,7 +20,7 @@ In the 'GOOD' case, the database (and thus the credentials) are encrypted.</p>
|
||||
|
||||
<sample src="CleartextSqliteDatabase.c" />
|
||||
|
||||
<p>Note that for the good example to work we need to provide a secret key. Secure key generation and storage is required.</p>
|
||||
<p>Note that for the 'GOOD' example to work we need to provide a secret key. Secure key generation and storage is required.</p>
|
||||
|
||||
</example>
|
||||
<references>
|
||||
|
||||
Reference in New Issue
Block a user