encryption and decryption of spl chars
hi,
I have a string of Special characters.
I need to encrypt each of the special character to another value in the string, without repeatation, so that i can decrypt it back, for a particular seed value.
string_val=$%&()~'*,-/:;=?_
substr(string_val, mod (instr(string_val,curr_char) + 545,length(string_val)),1)
Curr_char is the value passed to get the encrypted one.
I am getting repeations (for eg., * and , are getting encrypted to $) due to which i am not able to decrypt.
can somebody suggest changes to the above query, so that there wont be any repeatations.
Re: encryption and decryption of spl chars
Why don't you just use the Obfuscation Toolkit?