No Description

cypher_8cpp.tex 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. \hypertarget{cypher_8cpp}{}\section{Referencia del Archivo cypher.\+cpp}
  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*{Funciones}
  9. \begin{DoxyCompactItemize}
  10. \item
  11. string \hyperlink{cypher_8cpp_aee818f9db10b153b3067af5365a53806}{cypher} (string message, string key)
  12. \begin{DoxyCompactList}\small\item\em cypher Funcion que recive un mensaje en texto plano y una palabra llave provista por el usuario y encripta el mensaje. \end{DoxyCompactList}\item
  13. string \hyperlink{cypher_8cpp_af9f89bd41fe6c015e6589a0677e1d108}{decypher} (string m, string k)
  14. \begin{DoxyCompactList}\small\item\em Funcion que decifra un texto cifrado con Vigenere, recibe el texto cifrado y la palabra llave y devuelve texto plano. \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 Funcion que hace prueba unitaria a la funcion cypher. \end{DoxyCompactList}\end{DoxyCompactItemize}
  17. \subsection{Documentación de las funciones}
  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. cypher Funcion que recive un mensaje en texto plano y una palabra llave provista por el usuario y encripta el mensaje.
  27. \begin{DoxyParams}{Parámetros}
  28. {\em message} & Mensaje a ser encriptado provisto por el usuario. \\
  29. \hline
  30. {\em key} & palabra llave que el usuario provee, usado para encriptar el mensaje en texto plano. \\
  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. Funcion que decifra un texto cifrado con Vigenere, recibe el texto cifrado y la palabra llave y devuelve texto plano.
  42. \begin{DoxyParams}{Parámetros}
  43. {\em message} & Mensaje a ser encriptado provisto por el usuario. \\
  44. \hline
  45. {\em key} & palabra llave que el usuario provee, usado para encriptar el mensaje en texto plano. \\
  46. \hline
  47. \end{DoxyParams}