Reputation: 1791
Is there any C or C++ function which can produce the same output of this python code (SHA512 with salt)?
import crypt; crypt.crypt('test', '$6$Salte2Ck$')
Upvotes: 0
Views: 338
Reputation: 2731
Here are some explanations to Python's crypt function. So I think what you are looking for is the C function crypt from unistd.h.
crypt
unistd.h
Upvotes: 3