Author Topic: 2 Questions..  (Read 3170 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
2 Questions..
« on: October 14, 2011, 07:17:53 am »
1. What is the differences between stock and public?

2. How to encrypt Pawn password? Not like Gups 1.16
I'm beginning to feel like a Lag God, Lag God

Offline eDz0r

  • Street Thug
  • *
  • Posts: 2
    • View Profile
Re: 2 Questions..
« Reply #1 on: October 14, 2011, 03:28:05 pm »
1. stock is used to make functions and public is for do something when something happend
2. With dutils.inc (i think)



Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: 2 Questions..
« Reply #2 on: October 14, 2011, 10:57:08 pm »
1. stock just tells the Pawn compiler to see if the function is used. If it isn't, it doesn't get added to the compiled script. public is pretty much the same as stock, except it's always compiled in and can be accessed from any script that includes it.

2. dutils.inc does not have encryption. I'll work on a customized SHA-256 implementation later. The SA:MP forum probably has encryption functions too.
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: 2 Questions..
« Reply #3 on: October 15, 2011, 05:42:17 pm »
Quote from: stormeus
SHA-256
What is that?

Quote from: stormeus
The SA:MP forum probably has encryption functions too.
Can't find one..  :-\
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: 2 Questions..
« Reply #4 on: October 15, 2011, 07:21:00 pm »
http://en.wikipedia.org/wiki/Secure_Hash_Algorithm

And here's an MD5 implementation by Y_Less for an SA:MP include. It should work on VC:MP, but I haven't tested it.
http://forum.sa-mp.com/showpost.php?p=869025&postcount=5
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: 2 Questions..
« Reply #5 on: October 16, 2011, 12:05:16 pm »
Madara Warchief use Dutils to encrypt. Is it safe?
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: 2 Questions..
« Reply #6 on: October 16, 2011, 07:36:04 pm »
I can't guarantee that it's safe. I can't guarantee MD5 is safe either, but it's safer.
Do not PM me for support.