[Plugin] [REL] Encrypt
#1

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:
  • 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[])

Encrypt Win+Unix
Source

P.S. On Linux it was not possible to check
Reply


Messages In This Thread
Encrypt - by Fro1sha - 05.06.2010, 12:15
Re: [REL] Encrypt - by king s dm - 05.06.2010, 12:20
Re: [REL] Encrypt - by Woet - 05.06.2010, 14:20
Re: [REL] Encrypt - by Fro1sha - 05.06.2010, 14:41
Re: [REL] Encrypt - by [LDT]LuxurY - 06.07.2010, 15:04
Re: [REL] Encrypt - by JernejL - 31.07.2010, 09:22
[REL] Encrypt - by [NoV]LaZ - 31.07.2010, 09:34
Re: [REL] Encrypt - by JernejL - 09.12.2010, 07:26
Re: [REL] Encrypt - by legodude - 30.12.2010, 19:42
Re: [REL] Encrypt - by FreshDoubleX - 30.12.2010, 19:53
Re: [REL] Encrypt - by Matthewjames1 - 12.05.2011, 00:34
AW: [REL] Encrypt - by The_Godboy - 19.05.2011, 13:41
Re : [REL] Encrypt - by human-product - 23.09.2011, 16:34
Re: [REL] Encrypt - by GangsTa_ - 23.09.2011, 18:00
Re : [REL] Encrypt - by TheBest6 - 07.10.2011, 10:09
Re: [REL] Encrypt - by Stylock - 08.08.2013, 16:32
AW: Re: [REL] Encrypt - by Mellnik - 08.08.2013, 19:10
Re: [REL] Encrypt - by DandyCorleone - 04.01.2017, 02:06
Re: [REL] Encrypt - by BroZeus - 05.01.2017, 12:55
Respuesta: [REL] Encrypt - by DarkChildren - 06.01.2017, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)