zoukankan      html  css  js  c++  java
  • 笔记<c# 调用DLL解密密文>




    using DTcms.Common;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace Decrypt
    {
        class Program
        {
            static void Main(string[] args)
            {
                if (args.Length < 2)
                {
                    Console.WriteLine("Des Decrypt : Hash   Key");
                    Console.WriteLine("Des Decrypt : 26F6C386350B999D71A5CD07F38705FE 28LH48");
                    return;
                }
                
                string password = args[0];
                string key = args[1];
    
                string de_password = DESEncrypt.Decrypt(password, key);
                Console.WriteLine(de_password);
                return;
            }
        }
    }

    看到论坛有人求助,无奈我也试了试,C#不行。后来看到论坛有人给解决了。就学习了记录一下,方便下次使用。

    下载BIN目录下的DLL,逆向查看加密方式。

    然后本地新建立C#工程,加入DLL,直接调用函数里的方法就好了。

  • 相关阅读:
    secureCRT常用设置
    SecureCRT恢复默认字体
    hdu 1515 dfs
    hdu 2216 bfs
    hdu 1973 bfs+素数判断
    hdu 1429 bfs+状压
    poj 3463 次短路
    hdu 2962 最短路+二分
    hdu 2112 最短路
    hdu 3397 线段树
  • 原文地址:https://www.cnblogs.com/killbit/p/5060713.html
Copyright © 2011-2022 走看看