久久久久久久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() 加密的用戶密碼的數據庫.我需要為 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.

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

                  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() 函數的作用基本相同,只是先將十六進制字符串解碼為字節,然后將去混淆"結果作為純字符串而不是十六進制返回.

                  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.

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

                  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模板網!

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

                  相關文檔推薦

                  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(從函數調用按鈕 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'>

                            主站蜘蛛池模板: 干干干操操操 | 一区二区国产精品 | 一区二区三区视频在线播放 | 动漫av在线 | 午夜免费av | 一区二区三区在线观看视频 | 久久99久久99| 精品久久一区二区 | 国产精品一级二级 | 天天干夜夜艹 | 天天干夜夜操 | 怡红院av | a一级黄色片 | 成人黄性视频 | 福利在线看| 成人免费看片在线观看 | 国产成人精品毛片 | 91最新网址 | 久久这里只有 | 亚洲精品免费在线 | 国产在线一区二区 | 三级黄色网 | 日韩欧美精品一区二区 | 日韩国产精品视频 | 91青青草 | 国产麻豆视频 | 在线观看亚洲 | 毛片毛片毛片 | 神马午夜影院 | 中文字幕+乱码+中文乱码91 | 亚洲www| 欧美一区二区在线 | 欧美成人精品欧美一级乱黄 | 国产福利视频在线 | 日本在线看片 | 国产精品自拍一区 | 久久在线精品 | 亚洲成人免费av | 午夜黄色小视频 | 成年人午夜视频 | 国产高潮在线观看 |