Commit 4feca77
Mathieu Payrol
fix: correctly handle
The function `encrypt_cisco_type7` was incorrectly handling the integer `0` as a missing argument because of the thruthiness check (`if not salt:`). This resulted in a random salt being used when the user explicitely requested salt `0`.
The condition has been updated to `if salt is None` to differentiate between a provided `0` and the default `None`.salt=0 in encrypt_cisco_type7
1 parent 985fd84 commit 4feca77
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments