久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='uklEc'></tfoot>
<i id='uklEc'><tr id='uklEc'><dt id='uklEc'><q id='uklEc'><span id='uklEc'><b id='uklEc'><form id='uklEc'><ins id='uklEc'></ins><ul id='uklEc'></ul><sub id='uklEc'></sub></form><legend id='uklEc'></legend><bdo id='uklEc'><pre id='uklEc'><center id='uklEc'></center></pre></bdo></b><th id='uklEc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uklEc'><tfoot id='uklEc'></tfoot><dl id='uklEc'><fieldset id='uklEc'></fieldset></dl></div>
  • <legend id='uklEc'><style id='uklEc'><dir id='uklEc'><q id='uklEc'></q></dir></style></legend>

          <bdo id='uklEc'></bdo><ul id='uklEc'></ul>

        <small id='uklEc'></small><noframes id='uklEc'>

        ColdFusion - cfusion_encrypt() 和 cfusion_decrypt() - C# 替代

        ColdFusion - cfusion_encrypt() and cfusion_decrypt() - C# alternative(ColdFusion - cfusion_encrypt() 和 cfusion_decrypt() - C# 替代方案)

              <legend id='boRa1'><style id='boRa1'><dir id='boRa1'><q id='boRa1'></q></dir></style></legend>
                <tbody id='boRa1'></tbody>

              <small id='boRa1'></small><noframes id='boRa1'>

                <bdo id='boRa1'></bdo><ul id='boRa1'></ul>
              • <i id='boRa1'><tr id='boRa1'><dt id='boRa1'><q id='boRa1'><span id='boRa1'><b id='boRa1'><form id='boRa1'><ins id='boRa1'></ins><ul id='boRa1'></ul><sub id='boRa1'></sub></form><legend id='boRa1'></legend><bdo id='boRa1'><pre id='boRa1'><center id='boRa1'></center></pre></bdo></b><th id='boRa1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='boRa1'><tfoot id='boRa1'></tfoot><dl id='boRa1'><fieldset id='boRa1'></fieldset></dl></div>

                <tfoot id='boRa1'></tfoot>
                1. 本文介紹了ColdFusion - cfusion_encrypt() 和 cfusion_decrypt() - C# 替代方案的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個包含通過 cfusion_encrypt() 加密的用戶密碼的數(shù)據(jù)庫.我需要為 C# 中的 ColdFusion 代碼做一個登錄替代.有沒有什么簡單的方法可以在 C# 中模擬這一點,以便我能夠比較用戶密碼的加密值并將它們與 ColdFusion 值匹配?

                  I have a database with user passwords that are encrypted via cfusion_encrypt(). I need to do a login alternative for the ColdFusion code in C#. Is there any easy way how to emulate this in C# so I will be able to compare encrypted values of user passwords and match them to the ColdFusion values?

                  推薦答案

                  名字不好的cfusion_encrypt()不是加密.它是一種內部的遺留混淆算法,強烈建議不要使用它.

                  The poorly named cfusion_encrypt() is not encryption at all. It is an internal, legacy obfuscation algorithm, whose use is strongly discouraged.

                  基本上它只是對字節(jié)進行異或,類似于 這里描述的方法(忽略 cfmx_compat,這是一種不同的傳統(tǒng)算法).它提取純文本字符串的字節(jié).然后 墊提供的 key 字符串長度相同,然后再次提取字節(jié).最后它對兩個字節(jié)數(shù)組進行異或,并將結果編碼為十六進制:

                  Essentially it just xor's the bytes, similar to the method described here (Ignore the mention of cfmx_compat, that is a different legacy algorithm). It extracts the bytes of a plain text string. Then pads the supplied key string to the same length, and again extracts the bytes. Finally it xor's the two byte arrays and encodes the result as hex:

                   // xor bytes
                   byte[] result = new byte[textBytes.Length];
                   for (int i = 0; i < textBytes.Length; i++) {
                        results[i] = (byte)(textBytes[i] ^ keyBytes [i]);
                   } 
                   // encode result as hex
                   String hexResult = BitConverter.ToString(results).Replace("-", "");
                  

                  cfusion_decrypt() 函數(shù)的作用基本相同,只是先將十六進制字符串解碼為字節(jié),然后將去混淆"結果作為純字符串而不是十六進制返回.

                  The cfusion_decrypt() function does essentially the same thing only decoding the hex string into bytes first, and returns the "de-obfuscated" result as a plain string instead of hex.

                  現(xiàn)在您可以了解為什么不鼓勵使用它了.正如@MartyPine 和其他人所建議的那樣,更好的選擇是讓 CF 端進行備份,然后通過 cfusion_decrypt 和 hash() 代替它們.它不僅是一種更好的密碼存儲方式,而且還具有與 C# 或任何其他支持標準算法的語言兼容的優(yōu)勢.

                  Now you can see why its use is discouraged. As @MartyPine and others suggested, the better option is to have the CF side make a backup, then run the passwords through cfusion_decrypt and hash() them instead. Not only is it a better way to store passwords, it also has the benefit of being compatible with C#, or any other language that supports the standard algorithms.

                  這篇關于ColdFusion - cfusion_encrypt() 和 cfusion_decrypt() - C# 替代方案的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調用按鈕 OnClick)
                        <legend id='xdvPX'><style id='xdvPX'><dir id='xdvPX'><q id='xdvPX'></q></dir></style></legend>
                        <i id='xdvPX'><tr id='xdvPX'><dt id='xdvPX'><q id='xdvPX'><span id='xdvPX'><b id='xdvPX'><form id='xdvPX'><ins id='xdvPX'></ins><ul id='xdvPX'></ul><sub id='xdvPX'></sub></form><legend id='xdvPX'></legend><bdo id='xdvPX'><pre id='xdvPX'><center id='xdvPX'></center></pre></bdo></b><th id='xdvPX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xdvPX'><tfoot id='xdvPX'></tfoot><dl id='xdvPX'><fieldset id='xdvPX'></fieldset></dl></div>
                      • <tfoot id='xdvPX'></tfoot>
                            <bdo id='xdvPX'></bdo><ul id='xdvPX'></ul>
                              <tbody id='xdvPX'></tbody>

                          • <small id='xdvPX'></small><noframes id='xdvPX'>

                            主站蜘蛛池模板: 国产a视频| 欧美精品一二三 | 激情91| 国产视频一区在线 | 综合中文字幕 | 成人不卡 | 成人国产精品入口免费视频 | 在线观看成人精品 | 婷婷激情综合 | 狠狠色狠狠色综合系列 | 青青草精品视频 | 日韩欧美在线免费观看视频 | 亚洲精品乱码久久久久久蜜桃91 | 激情欧美一区二区三区中文字幕 | 亚洲精品一区二区三区中文字幕 | www.欧美.com| av午夜激情 | 亚洲精品免费在线观看 | 狠狠热视频 | 久久激情av | 一区二区三区四区免费观看 | 美女视频一区二区 | 99精品国自产在线 | 国产 日韩 欧美 在线 | 中文字幕亚洲精品 | 在线视频中文字幕 | 99久久精品免费看国产四区 | 成人在线视频网址 | 99国产精品99久久久久久 | av网站免费在线观看 | www.亚洲国产精品 | 日韩成人高清 | 国产精品爱久久久久久久 | 亚洲国产免费 | 综合网中文字幕 | 日韩小视频 | 久久视频免费看 | 日韩三级精品 | 成人在线视频免费看 | 亚洲精品久久久蜜桃网站 | 夜夜骑首页 |