QUOTE(jhedz @ 13 Mar, 2008 - 06:53 PM)

hi nick...i attached the file of what is paired cipher is..hope u will help me...tnx...
please reply as soon as possible...tnx again!!!!
well, that sounds bit interesting. but I would love to help you when you come up with some efforts by yourself. I mean the algo. is explained in detail in your document. All you need to do is code those 2 lines.
Still to get you started, here are my suggestions.
-> you can go by 2 ways. First is to have an array of characters. Second is to work on ascii values directly [recommended]
-> If you go the ascii values way then just make your input string all caps first.
-> subtract 64 from both the characters you are encrypting in current iteration. [ascii of 'A' this takes it to range of 1 to 26]
-> apply your 2 line algorithm to get enciphered characters.
QUOTE
C1= (1xP1 + 3xP2) mod 26 + 1
C2= (2xP1 + 7xP2) mod 26 + 1
-> add 64 to the enciphered characters [this gives you the ascii for the enciphered character]
-> do this in loop till your input string ends. and you will get your enciphered message.
I hope this will help you.