hmmmmmm lets have a check
View more random threads:
- Check Online CS302 Digital Logic Design Assignments...
- Solution of MTH101's Assignment No 6 Fall 2010
- MGT602 Assignment 2 Solution 1 July 2010
- FIN611 First Assignment idea solution October, fall 2012
- Computer Architecture and Assembly Language Programming...
- MTH501 Assignment.......need solution....
- CS201-Introduction to Programming Assignment No.2 Spring...
- MGT602 Entrepreneurship Assignment No.1 Solution Spring...
- Allama IQbal Open University (Aiou) assignment solutions...
- CS702 Advanced Algorithms Analysis and Design Assignment...
Look at the code same as it in handouts compare this coding
Please Rate ***HTML Code://Encrypt the input string function Encrypt(input_size, key){ //////// Your encryption code will be here /////// var i = 0; var KeyAdded = 0; var MyAscii = 0; var MyArray = new Array(); var InputValue = encrypt.enc_input.value while (i<input_size) { MyAscii = parseFloat(InputValue.charCodeAt(i)); KeyAdded = parseFloat(MyAscii+key); MyArray[i] = String.fromCharCode(KeyAdded); // here i am saving each character in valid array i++; } encrypt.enc_output.value = MyArray.join(""); // here is my output of Encoded Output } //Decrypt the input string function Decrypt(input_size, key) { ///////////// Your decryption code will be here ///////////// var i = 0; var KeyAdded = 0; var MyAscii = 0; var MyArray = new Array(); var InputValue = encrypt.dec_input.value while (i<input_size) { MyAscii = parseFloat(InputValue.charCodeAt(i)); KeyAdded = parseFloat(MyAscii-key); // subtracting key to reverse encoded conversion MyArray[i] = String.fromCharCode(KeyAdded); // here i am saving each character in valid array i++; } encrypt.dec_output.value = MyArray.join(""); // here is my output of Original String it works ! }
Sponsored Links
Last edited by ahsan_ali; 07-09-2010 at 11:34 PM.
hmmmmmm lets have a check
:o:o--------------------------------------------------------------------------------------:o:o
[B]The more knowledge you have, the greater will be your fear of Allah.[/B]
Please Join My [B]Group Vuhelp[/B][B], Birthday Wishing, Daily Hadees[/B] [CODE][B]http://vuhelp.net/groups/vuhelp.html[/B]
[B]http://vuhelp.net/groups/birthday-wishing.html[/B]
[B]http://vuhelp.net/groups/daily-hadees.html[/B][/CODE]
[CENTER][B][COLOR="Red"][SIZE="4"]Email: [email]viki@vuhelp.net[/email][/SIZE][/COLOR][/B][/CENTER]
Above is mine result Aug 03,2010
Thank You very much !
Last edited by ahsan_ali; 08-04-2010 at 03:24 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)