[erlang-questions] SHA-256 + salting
t ty
tty.erlang@REDACTED
Fri May 18 19:54:30 CEST 2007
I'm assuming you're applying the salt after the data. Init a context,
update it with your data, then update with the salt, and finalize.
crypto:start(),
C1 = crypto:sha_init(),
C2 = crypto:sha_update(C1, Data),
C3 = crypto:sha_update(C2, Salt),
Digest = crypto:sha_final(C4).
To tag the salt on just append it to the digest (after convertion to a list).
Regards
t
On 5/18/07, Patrick <patrickerj@REDACTED> wrote:
> How do i apply sha-256 and salting on passwords? There is
> unfortunately no information on this anywhere..
>
> BR,
> Patrick
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list