Skip to content

Commit fa87298

Browse files
committed
Addressing openssl commandline warnings
1 parent f1e59df commit fa87298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example_code/item_067.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run_encrypt(data):
111111
env = os.environ.copy()
112112
env["password"] = "zf7ShyBhZOraQDdE/FiZpm/m/8f9X+M1"
113113
proc = subprocess.Popen(
114-
["openssl", "enc", "-des3", "-pass", "env:password"],
114+
["openssl", "enc", "-des3", "-pbkdf2", "-pass", "env:password"],
115115
env=env,
116116
stdin=subprocess.PIPE,
117117
stdout=subprocess.PIPE,
@@ -138,7 +138,7 @@ def run_encrypt(data):
138138
print("Example 8")
139139
def run_hash(input_stdin):
140140
return subprocess.Popen(
141-
["openssl", "dgst", "-whirlpool", "-binary"],
141+
["openssl", "dgst", "-sha256", "-binary"],
142142
stdin=input_stdin,
143143
stdout=subprocess.PIPE,
144144
)

0 commit comments

Comments
 (0)