Closed talavis closed 5 years ago
Updated the generate sFTP credentials functions to use digest() instead of SHA2, including a workaround to remove the prefix '\x' from the generated hash.
digest()
SHA2
'\x'
Also removes the non-functional sFTP tab from the dataset admin page.
You can cast the hash to a hex value (removing the prefix) with passwd_hash = fn.encode(fn.digest(password, 'sha256'), 'hex'). Looks good otherwise!
passwd_hash = fn.encode(fn.digest(password, 'sha256'), 'hex')
Describe the pull request:
Pull request long description:
Updated the generate sFTP credentials functions to use
digest()
instead ofSHA2
, including a workaround to remove the prefix'\x'
from the generated hash.Also removes the non-functional sFTP tab from the dataset admin page.