Add des3Decrypt() method

This commit is contained in:
de4dot 2011-12-31 12:58:32 +01:00
parent a817a14688
commit eb63c27fc9

View File

@ -72,6 +72,14 @@ namespace de4dot.code.deobfuscators {
}
}
public static byte[] des3Decrypt(byte[] data, byte[] key, byte[] iv) {
using (var des3 = TripleDES.Create()) {
using (var transform = des3.CreateDecryptor(key, iv)) {
return transform.TransformFinalBlock(data, 0, data.Length);
}
}
}
public static string getExtension(ModuleKind kind) {
switch (kind) {
case ModuleKind.Dll: