Documentation for c26eea874d

This commit is contained in:
realstealthninja
2025-05-19 11:38:33 +00:00
parent c7a9a42397
commit 14583a2f33
2829 changed files with 30266 additions and 21669 deletions

View File

@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TheAlgorithms/C++: ciphers/vigenere_cipher.cpp File Reference</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
@@ -60,7 +60,7 @@ window.MathJax = {
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -219,12 +219,11 @@ This program implements Vigenère cipher for only uppercase English alphabet cha
<div class="line"><span class="lineno"> 97</span> <span class="keywordtype">int</span> place_value_text = get_value(text[i]); <span class="comment">// Getting value of character in text</span></div>
<div class="line"><span class="lineno"> 98</span> <span class="keywordtype">int</span> place_value_key = get_value(key[j]); <span class="comment">// Getting value of character in key</span></div>
<div class="line"><span class="lineno"> 99</span> place_value_text = (place_value_text - place_value_key + 26) % 26; <span class="comment">// Applying decryption</span></div>
<div class="line"><span class="lineno"> 100</span> <span class="keywordtype">char</span> decrypted_char = <a class="code hl_function" href="../../d4/d08/sha256_8cpp.html#a9e98c180d32b04aab6f767cb0c13e1da">get_char</a>(place_value_text); <span class="comment">// Getting new character from decrypted value</span></div>
<div class="line"><span class="lineno"> 100</span> <span class="keywordtype">char</span> decrypted_char = get_char(place_value_text); <span class="comment">// Getting new character from decrypted value</span></div>
<div class="line"><span class="lineno"> 101</span> decrypted_text += decrypted_char; <span class="comment">// Appending decrypted character</span></div>
<div class="line"><span class="lineno"> 102</span> } </div>
<div class="line"><span class="lineno"> 103</span> <span class="keywordflow">return</span> decrypted_text; <span class="comment">// Returning decrypted text</span></div>
<div class="line"><span class="lineno"> 104</span> }</div>
<div class="ttc" id="asha256_8cpp_html_a9e98c180d32b04aab6f767cb0c13e1da"><div class="ttname"><a href="../../d4/d08/sha256_8cpp.html#a9e98c180d32b04aab6f767cb0c13e1da">hashing::sha256::get_char</a></div><div class="ttdeci">char get_char(const std::string &amp;input, std::size_t pos)</div><div class="ttdoc">Returns the character at pos after the input is padded.</div><div class="ttdef"><b>Definition</b> <a href="../../d4/d08/sha256_8cpp_source.html#l00170">sha256.cpp:170</a></div></div>
</div><!-- fragment -->
</div>
</div>
@@ -264,7 +263,7 @@ This program implements Vigenère cipher for only uppercase English alphabet cha
<div class="line"><span class="lineno"> 78</span> <span class="keywordtype">int</span> place_value_text = get_value(text[i]); <span class="comment">// Getting value of character in text</span></div>
<div class="line"><span class="lineno"> 79</span> <span class="keywordtype">int</span> place_value_key = get_value(key[j]); <span class="comment">// Getting value of character in key</span></div>
<div class="line"><span class="lineno"> 80</span> place_value_text = (place_value_text + place_value_key) % 26; <span class="comment">// Applying encryption</span></div>
<div class="line"><span class="lineno"> 81</span> <span class="keywordtype">char</span> encrypted_char = <a class="code hl_function" href="../../d4/d08/sha256_8cpp.html#a9e98c180d32b04aab6f767cb0c13e1da">get_char</a>(place_value_text); <span class="comment">// Getting new character from encrypted value</span></div>
<div class="line"><span class="lineno"> 81</span> <span class="keywordtype">char</span> encrypted_char = get_char(place_value_text); <span class="comment">// Getting new character from encrypted value</span></div>
<div class="line"><span class="lineno"> 82</span> encrypted_text += encrypted_char; <span class="comment">// Appending encrypted character</span></div>
<div class="line"><span class="lineno"> 83</span> }</div>
<div class="line"><span class="lineno"> 84</span> <span class="keywordflow">return</span> encrypted_text; <span class="comment">// Returning encrypted text</span></div>
@@ -344,7 +343,7 @@ This program implements Vigenère cipher for only uppercase English alphabet cha
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_4d6e05837bf820fb089a8a8cdf2f42b7.html">ciphers</a></li><li class="navelem"><a class="el" href="../../dd/d12/vigenere__cipher_8cpp.html">vigenere_cipher.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
</ul>
</div>
</body>