Understandable password hash
#6

That could be done by replacing the characters and by running the string on a loop. A small example:
pawn Код:
new
    string[] = "I'm Lordz!";

for(new i; i< strlen(string); i++)
{
    switch(string[i])
    {
        case 'A' : string[i] = 'i';
        case 'B' : string[i] = 'c';
        case 'C' : string[i] = 'z';
        case 'D' : string[i] = 'Y';
        case 'E' : string[i] = 'L';
        //And so...
        case 'Z' : string[i] = 'x';
        //...
        case 'a' : string[i] = 'G';
        case 'z' : string[i] = 'O';
    }
}
Now salting them would be like:
pawn Код:
for(new i; i< strlen(string); i++)
{
    switch(string[i])
    {
        case 'i' : string[i] = 'A';
        case 'c' : string[i] = 'B';
        case 'z' : string[i] = 'C';
        case 'Y' : string[i] = 'D';
        case 'G' : string[i] = 'a';
    }
}
To ease this, you could create defines and then implement them to create an easier function. And if you're looking for INI readings, I suggest you to load them up and store them on an array.

Though, I stick with what Vince has told. This was just an answer to your question in regarding if it's possible to.
Reply


Messages In This Thread
Understandable password hash - by Twizted - 12.04.2014, 11:10
Re: Understandable password hash - by Ada32 - 12.04.2014, 11:14
Re: Understandable password hash - by Vince - 12.04.2014, 11:18
Re: Understandable password hash - by Twizted - 12.04.2014, 11:19
Re: Understandable password hash - by gtakillerIV - 12.04.2014, 11:22
Re: Understandable password hash - by Lordzy - 12.04.2014, 11:23
Re: Understandable password hash - by Twizted - 12.04.2014, 11:24
Re: Understandable password hash - by Twizted - 12.04.2014, 11:32

Forum Jump:


Users browsing this thread: 1 Guest(s)