user2521791
user2521791

Reputation: 1791

C equivalent to Python crypto.crypto()

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

Answers (1)

m13r
m13r

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.

Upvotes: 3

Related Questions