Bez popisu

cypher_8cpp.tex 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. \hypertarget{cypher_8cpp}{}\section{cypher.\+cpp File Reference}
  2. \label{cypher_8cpp}\index{cypher.\+cpp@{cypher.\+cpp}}
  3. {\ttfamily \#include $<$string$>$}\\*
  4. {\ttfamily \#include $<$cassert$>$}\\*
  5. {\ttfamily \#include $<$iostream$>$}\\*
  6. {\ttfamily \#include $<$Q\+Debug$>$}\\*
  7. {\ttfamily \#include \char`\"{}cypher.\+h\char`\"{}}\\*
  8. \subsection*{Functions}
  9. \begin{DoxyCompactItemize}
  10. \item
  11. string \hyperlink{cypher_8cpp_aee818f9db10b153b3067af5365a53806}{cypher} (string message, string key)
  12. \begin{DoxyCompactList}\small\item\em Function that recives the plaintext message and the keyword provided by the user and encrypts the message. \end{DoxyCompactList}\item
  13. string \hyperlink{cypher_8cpp_af9f89bd41fe6c015e6589a0677e1d108}{decypher} (string m, string k)
  14. \begin{DoxyCompactList}\small\item\em Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext. \end{DoxyCompactList}\item
  15. \hypertarget{cypher_8cpp_a56eea50b62dd8e9174463bce0b90d213}{}void \hyperlink{cypher_8cpp_a56eea50b62dd8e9174463bce0b90d213}{test\+\_\+cypher} ()\label{cypher_8cpp_a56eea50b62dd8e9174463bce0b90d213}
  16. \begin{DoxyCompactList}\small\item\em Function to unit text the cypher function. \end{DoxyCompactList}\end{DoxyCompactItemize}
  17. \subsection{Function Documentation}
  18. \hypertarget{cypher_8cpp_aee818f9db10b153b3067af5365a53806}{}\index{cypher.\+cpp@{cypher.\+cpp}!cypher@{cypher}}
  19. \index{cypher@{cypher}!cypher.\+cpp@{cypher.\+cpp}}
  20. \subsubsection[{cypher}]{\setlength{\rightskip}{0pt plus 5cm}string cypher (
  21. \begin{DoxyParamCaption}
  22. \item[{string}]{message, }
  23. \item[{string}]{key}
  24. \end{DoxyParamCaption}
  25. )}\label{cypher_8cpp_aee818f9db10b153b3067af5365a53806}
  26. Function that recives the plaintext message and the keyword provided by the user and encrypts the message.
  27. \begin{DoxyParams}{Parameters}
  28. {\em message} & Message to be encrypted provided by the user \\
  29. \hline
  30. {\em key} & keyword that the user provides, used to encrypt plain text \\
  31. \hline
  32. \end{DoxyParams}
  33. \hypertarget{cypher_8cpp_af9f89bd41fe6c015e6589a0677e1d108}{}\index{cypher.\+cpp@{cypher.\+cpp}!decypher@{decypher}}
  34. \index{decypher@{decypher}!cypher.\+cpp@{cypher.\+cpp}}
  35. \subsubsection[{decypher}]{\setlength{\rightskip}{0pt plus 5cm}string decypher (
  36. \begin{DoxyParamCaption}
  37. \item[{string}]{message, }
  38. \item[{string}]{key}
  39. \end{DoxyParamCaption}
  40. )}\label{cypher_8cpp_af9f89bd41fe6c015e6589a0677e1d108}
  41. Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext.
  42. \begin{DoxyParams}{Parameters}
  43. {\em message} & Message to be encrypted provided by the user \\
  44. \hline
  45. {\em key} & keyword that the user provides, used to encrypt plain text \\
  46. \hline
  47. \end{DoxyParams}