123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.9.1"/>
- <title>My Project: cypher.cpp File Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">My Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.9.1 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>File Members</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">cypher.cpp File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><code>#include <string></code><br />
- <code>#include <cassert></code><br />
- <code>#include <iostream></code><br />
- <code>#include <QDebug></code><br />
- <code>#include "cypher.h"</code><br />
- </div><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:aee818f9db10b153b3067af5365a53806"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="cypher_8cpp.html#aee818f9db10b153b3067af5365a53806">cypher</a> (string message, string key)</td></tr>
- <tr class="memdesc:aee818f9db10b153b3067af5365a53806"><td class="mdescLeft"> </td><td class="mdescRight">Function that recives the plaintext message and the keyword provided by the user and encrypts the message. <a href="#aee818f9db10b153b3067af5365a53806">More...</a><br /></td></tr>
- <tr class="separator:aee818f9db10b153b3067af5365a53806"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af9f89bd41fe6c015e6589a0677e1d108"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="cypher_8cpp.html#af9f89bd41fe6c015e6589a0677e1d108">decypher</a> (string m, string k)</td></tr>
- <tr class="memdesc:af9f89bd41fe6c015e6589a0677e1d108"><td class="mdescLeft"> </td><td class="mdescRight">Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext. <a href="#af9f89bd41fe6c015e6589a0677e1d108">More...</a><br /></td></tr>
- <tr class="separator:af9f89bd41fe6c015e6589a0677e1d108"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a56eea50b62dd8e9174463bce0b90d213"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56eea50b62dd8e9174463bce0b90d213"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="cypher_8cpp.html#a56eea50b62dd8e9174463bce0b90d213">test_cypher</a> ()</td></tr>
- <tr class="memdesc:a56eea50b62dd8e9174463bce0b90d213"><td class="mdescLeft"> </td><td class="mdescRight">Function to unit text the cypher function. <br /></td></tr>
- <tr class="separator:a56eea50b62dd8e9174463bce0b90d213"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="aee818f9db10b153b3067af5365a53806"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string cypher </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>message</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>key</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Function that recives the plaintext message and the keyword provided by the user and encrypts the message. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">message</td><td>Message to be encrypted provided by the user </td></tr>
- <tr><td class="paramname">key</td><td>keyword that the user provides, used to encrypt plain text </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a class="anchor" id="af9f89bd41fe6c015e6589a0677e1d108"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string decypher </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>message</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>key</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">message</td><td>Message to be encrypted provided by the user </td></tr>
- <tr><td class="paramname">key</td><td>keyword that the user provides, used to encrypt plain text </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Thu Jun 4 2015 09:11:48 for My Project by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.9.1
- </small></address>
- </body>
- </html>
|