PageSourceSearch

https://md5.cz/mariadb-md5

html md5.cz collected 2026-10-02 18:57:00 UTC 7,915 bytes, 126 lines download raw bytes

1<!DOCTYPE html>
2<html lang="en">
3    <head>
4        <meta charset="UTF-8">
5        <title>MariaDB function MD5()</title>
6        <meta name="description" content="Online generator md5 hash of string. Checksum md5. " />
7        <meta name="keywords" content="php, function, md5, function md5, generator, md5 generator, md5 online, md5 check, md5 checksum" />
8        <meta name="viewport" content="width=device-width, initial-scale=1.0">
9        <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/panda-syntax-light.min.css">
10        
10<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
10
11                <!-- 
11<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
11 -->
12        
12<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
12
13        
13<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
13
14        
14<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
14
15        <link media="all" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" />
16        <link media="all" rel="stylesheet" href="inc/style3.css?chks=dfb8ab5c3717410c0fd5ffaf106e9393" crossorigin="anonymous"/>
17        <!-- Font Awesome -->
18        <link rel="stylesheet" href="/inc/fontawesome-free/css/all.min.css">
19        <!-- Google Tag Manager -->
20        
20<script>
vendor: 359 bytes, lines 20-24
20(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
23        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24        })(window,document,'script','dataLayer','
24GTM-W99BN27
vendor: 3 bytes, line 24
24');
24</script>
24
25        <!-- End Google Tag Manager -->
26
27        
28        <!-- Google AdSense -->
29        
29<script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>
29
30        
30<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7492776353891642" crossorigin="anonymous"></script>
30
31        <!-- End Google AdSense -->            </head>
32    <body>
33                    
34            <main class="container">
35                <div class="row justify-content-md-center">
36                    <h1 class="col text-center"><a href="/"><i class="fa fa-home pr-4"></i>function md5()</a></h1>
37                </div>
38            <div class="row justify-content-md-center py-4">
39    <h2 class="col text-center ">Using MD5 function in MariaDB</h2>
40</div>
41<article class="row">
42    
43    <div class="col-12">
44        <p>Using the MD5 algorithm in MariaDB is very easy because it has a native MD5() function.</p>
45        <p>The return value is a 32-hex digit string, and as of MariaDB 5.5, is a nonbinary string in
46        the connection character set and collation, determined by the values of the <code>character_set_connection</code> and <code>collation_connection</code> system variables.
47        Before 5.5, the return value was a binary string.</p>
48        <p><code>NULL</code> is returned if the argument was <code>NULL</code>.</p>
49    </div>
50    <div class="col-12 mt-4"><h3>Syntax:</h3>
51        <pre><code class="language-sql">MD5(string)</code></pre>
52    </div>
53    
54    <div class="col-12">
55        
56        <h3>Basic example:</h3>
57        <pre><code class="language-sql">SELECT MD5('Hello world!');</code></pre></div>
58
59
60    <div class="col-12"><h4>The above example will output:</h4>
61        <pre><code class="language-plaintext">86fb269d190d2c85f6e0468ceca42a20</code></pre>
62    </div>
63 
64    <div class="col-12 mt-4">
65        <h3>Example #2 with salt before string to be encrypted:</h3>
66        <p>In some cases, it is worth using a salted MD5 hash for added security. This means that you add the "salt string" before or after the string to be encrypted.</p>
67        <pre>
68            <code class="language-sql">SELECT MD5(CONCAT('yourSalt', 'Hello world!'));</code>
69        </pre></div>
70    
71    <div class="col-12"><h4>Example #2 will output:</h4>
72        <pre><code class="language-plaintext">a17602be9d6201a338243d8d7693f5bf</code></pre>
73    </div>
74    
75    <div class="col-12">
76        <p><i>Note: Be aware that using encryption functions in a database usually means that the original, unencrypted text will be stored in the database log, which in some cases can be a potential security risk.</i></p>
77    </div>
78    <div class="col-12 externalSources">
79        <h3>External resources about MD5 in MariaDDB:</h3>
80        <a href="https://mariadb.com/kb/en/md5/" target="_blank"><i class="fas fa-external-link-alt" aria-hidden="true"></i> MariaDB.com</a>
81        </ul>
82    </div>
83    
84</article>            </main>
85            <footer>
86                <hr>
87                <div class="row content-md-center mt-2 pt-2">
88                    <div class="col-sm-12 text-center"><small>Implementations MD5:</small></div>
89                </div>
90                <div class="links row">
91                    <div class="col-sm-12 text-center">
92                        <a href="/php-md5" title="string md5  ( string $str  [, bool $raw_output  ] )">md5() in PHP</a> <small>|</small>
93                        <a href="/javascript-md5" title="MD5 Implementation in JavaScript">md5 in JavaScript</a> <small>|</small>
94                        <a href="/mysql-md5" title="MySQL: function MD5">md5() in MySQL</a> <small>|</small>
95                        <a href="/mariadb-md5" title="MariaDB: function MD5">md5() in MariaDB</a> <small>|</small>
96                        <a href="/t-sql-md5" title="T-SQL: function MD5">md5 in T-SQL</a> <small>|</small>
97                        <a href="/python-md5" title="MD5 hash in Python">md5 in Python</a> 
98                    </div>
99                </div>
100                <div class="links row">
101                    <div class="col-sm-12 text-center">
102                        <a href="http://en.wikipedia.org/wiki/Md5" target="_blank" title="MD5 (Message-Digest algorithm 5) on Wikipedia.org">MD5 on Wikipedia.org</a>
103                    </div>
104                </div>
105            </footer>
106        <!--
107<script src="/inc/jquery.ihavecookies.min.js?chks=553776daa8b78b0b632803f19660b0c2"></script>
107
108        <link media="all" rel="stylesheet" href="/inc/ihavecookies.css?chks=24a6fe0583fde7f6a405385f125965c1"  crossorigin="anonymous"/>
109        
109<script>
110        $('document').ready(function(){
111            ihavecookiesInit();
112        });
113
114        ihavecookiesInit = function() {
115            if (typeof($('body').ihavecookies) != 'function') { return; }
116            
117            var options = {
118                    message: "Cookies enable you to personalize your experience on our sites, tell us which parts of our websites people have visited, help us measure the effectiveness of ads and web searches, and give us insights into user behavior so we can improve our communications."
119                    , link : "#"
120            }
121            $('body').ihavecookies(options, '');
122        };
123        </script>
123
124-->        
124<script>hljs.highlightAll();</script>
124
125        <!-- 
125<script data-cfasync="false" type="text/javascript" data-adel="atag" src="//acscdn.com/script/atg.js" czid="m2zubc2fp1"></script>
125 -->    </body>
126</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.