| | |
Anybody knows this? Program to solve hill cipher.
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
jempag,
It is kinda hard for anyone, to predict your exact approach into writing a program to either encrypt or decrypt. Even if they are familiar with the cipher.
Therefore, in order for you to get better suggestions I guess it would be compulsory for you to first take the time in explaining the approach by which you wish to achieve your goal. And also provide some code that you have already implemented. When that would be done, It would be easier for everyone to then Understand your approach and might lead into helping you to get the solution.
AS Far as HILL Cipher goes.
Basically You must teach the computer Matrix Multiplication.
Considering that you are using a 2x2 Matrix as a key, I guess it would be quite easy to do so.
Now when you are either Encrypting or Decrypting . Make sure that you use 2 letters(1x2) letter matrix To make multiplication possible.
You could use an Enumeration to make symbolic constants representing each letter and the value for that letter.(This approach would require you to use a tokenizer .)
It is kinda hard for anyone, to predict your exact approach into writing a program to either encrypt or decrypt. Even if they are familiar with the cipher.
Therefore, in order for you to get better suggestions I guess it would be compulsory for you to first take the time in explaining the approach by which you wish to achieve your goal. And also provide some code that you have already implemented. When that would be done, It would be easier for everyone to then Understand your approach and might lead into helping you to get the solution.
AS Far as HILL Cipher goes.
Basically You must teach the computer Matrix Multiplication.
Considering that you are using a 2x2 Matrix as a key, I guess it would be quite easy to do so.
Now when you are either Encrypting or Decrypting . Make sure that you use 2 letters(1x2) letter matrix To make multiplication possible.
You could use an Enumeration to make symbolic constants representing each letter and the value for that letter.(This approach would require you to use a tokenizer .)
Last edited by Sky Diploma; Sep 1st, 2009 at 1:07 pm.
Well if
we think that
Would give up the determinant. I hope i closed all the braces correctly.
we think that
C++ Syntax (Toggle Plain Text)
int matrix [2][2]; int determinant = ((matrix[0][0])*(matrix[1][1])) - ( (-matrix[0][1])) *(-matrix[1][0]))
![]() |
Similar Threads
- put the Dos 's command into java program? (Java)
- Need help with Caesar Cipher program (Java)
- Help on stack , queue, palindrome program... (C++)
- Give me program to solve Booth algorithm (C++)
- plz help me with this c++ program (C++)
- my program text file do not display properly. Please help... (C)
- Open a file by using default window program (Visual Basic 4 / 5 / 6)
- Help Me Solve My Infinite Loop (C++)
- Plz help......Map-coloring problem (C++)
- Program with many errors (C++)
Other Threads in the C++ Forum
- Previous Thread: Where To Get G++ for Fedora 11
- Next Thread: Object detection using Opencv Haar Cascades
Views: 634 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll dynamic encryption error file forms fstream function functions game givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort stream string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





