Open Razewolf opened 6 years ago
crypt.methods A list of available password hashing algorithms, as crypt.METHOD_* objects. This list is sorted from strongest to weakest, and is guaranteed to have at least crypt.METHOD_CRYPT.
Not all methods are guaranteed on all platforms. only METHOD_CRYPT is available in pythonista on ios
you might look into passlib, which purportedly has a pure python implementation of sha256.
import crypt crypt.crypt('password',salt=crypt.METHOD_SHA256)
Expected result (changes at each run): $5$PlBwxO.5q9bk9Vas$99rywcrh1Og9aRKcH3/NdKP/YphCqTAe8Ts16eYMCu3
Pythonista3 result (same at each run): $5vvFjbkJCcrk
System Details: