Is there a way to reverse a crypt() in c?

2019-02-09 10:54发布

Not sure if this is possible but I want to be able to start with a string, and then figure out what the input must be into the crypt in order to get this string out.

Or maybe it's impossible, which would be the whole purpose of the thing anyways?

Yes, there is a salt in the code where I am trying this.

标签: c hash crypt
7条回答
Deceive 欺骗
2楼-- · 2019-02-09 11:32

No.

crypt() is not a reversible algorithm (it uses a one-way function) which is rendered more difficult to brute force by the addition of salt to the encrypted value.

Edited per comments.

查看更多
登录 后发表回答