05.06.2010, 12:15
(
Последний раз редактировалось Fro1sha; 07.07.2010 в 13:42.
)
Author:
Fro aka Fro1sha
Description:
Allows you to encrypt any text, file (_file).
Create a unique key (_hmac).
Dimension hash:
sha1 - 41
sha2(224, 256) - 65
sha2(384, 512) - 129
md5 - 33
Copyright © 2010 Fro <TBG>
Credit http://xyssl.sourcearchive.com/docum....9-2/main.html
Functions:
Source
P.S. On Linux it was not possible to check
Fro aka Fro1sha
Description:
Allows you to encrypt any text, file (_file).
Create a unique key (_hmac).
Dimension hash:
sha1 - 41
sha2(224, 256) - 65
sha2(384, 512) - 129
md5 - 33
Copyright © 2010 Fro <TBG>
Credit http://xyssl.sourcearchive.com/docum....9-2/main.html
Functions:
-
sha1(const text[], hash[])
-
sha1_file(const filename[], hash[])
Return 0 if successful, 1 - if fopen failed or 2 - if fread failed
-
sha1_hmac(const key[], const text[], hash[])
-
sha2(const text[], hash[], sha2_method:method=sha_256)
-
sha2_file(const filename[], hash[], sha2_method:method=sha_256)
-
sha2_hmac(const key[], const text[], hash[], sha2_method:method=sha_256)
-
md5(const text[], hash[])
-
md5_file(const filename[], hash[])
Return 0 if successful, 1 - if fopen failed or 2 - if fread failed
-
md5_hmac(const key[], const text[], hash[])
Source
P.S. On Linux it was not possible to check