Skip to content

Commit e942cfb

Browse files
fix typos in docs and in-code comments
1 parent aef9645 commit e942cfb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

swift/ql/src/queries/Security/CWE-321/HardcodedEncryptionKey.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"qhelp.dtd">
44
<qhelp>
55
<overview>
6-
<p>Hardcoded keys should not be used for creating encryption ciphers. Data encrypted using hardcoded keys are more vulnerable to the possiblity of recovering them.</p>
6+
<p>Hardcoded keys should not be used for creating encryption ciphers. Data encrypted using hardcoded keys are more vulnerable to the possibility of recovering them.</p>
77
</overview>
88

99
<recommendation>

swift/ql/src/queries/Security/CWE-321/HardcodedEncryptionKey.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Hard-coded encryption key
3-
* @description Using hardcoded keys for encryption is not secure, because potential attacker can easiy guess them.
3+
* @description Using hardcoded keys for encryption is not secure, because potential attackers can easily guess them.
44
* @kind path-problem
55
* @problem.severity error
66
* @security-severity 8.1
@@ -29,9 +29,7 @@ class ByteArrayLiteralSource extends KeySource {
2929
/**
3030
* A string literal is a key source.
3131
*/
32-
class StringLiteralSource extends KeySource {
33-
StringLiteralSource() { this instanceof StringLiteralExpr }
34-
}
32+
class StringLiteralSource extends KeySource instanceof StringLiteralExpr { }
3533

3634
/**
3735
* A class for all ways to set a key.

0 commit comments

Comments
 (0)