שתף באמצעות


Finding string encryption with given input and output

Question

Sunday, January 17, 2010 4:25 AM

I have an input and an output, but i would like to know what how to calculate/find the string encryption in between.

Input: 22ac24c481690dd5d90973c6697624ec

String: ??? Unknown

Output: cc28641637656a42e092b61d3e67af0d

 

 

http://cid-9f07dcb04e907112.skydrive.live.com/self.aspx/My%20Software/Attributor%202.0.exe

All replies (6)

Monday, January 18, 2010 3:05 PM ✅Answered

If you know the input, output and encryption method then you have a good shot at recovering the key(s).  If you are missing any of those pieces then you are shooting in the dark.  The good news is that you have the two critical pieces of information.  The bad news is you could still spend a month with a brute force attack using the wrong strategy.  Worse still would be the case where you have triple or multi-phase encryption.jon.stromer.galley


Monday, January 18, 2010 10:56 PM ✅Answered

If you know the input, output and encryption method... jon.stromer.galley

This is referred to as a known-plaintext attack, and is only successful in specific circumstances or against weak algorithms.  In general, even these three pieces of information are not enough to recover a key.

It is unlikely that the original poster will be able to make any headway on this issue using the available information, assuming that reasonably modern algorithms have been selected. 

Brandon

Brandon Haynes
brandonhaynes.org


Sunday, January 17, 2010 7:56 AM

Hi,

Have a look at the movie Mercury Rising

http://en.wikipedia.org/wiki/Mercury_Rising

Cor
Success
Cor


Sunday, January 17, 2010 8:53 AM

I have an input and an output, but i would like to know what how to calculate/find the string encryption in between.

Input: 22ac24c481690dd5d90973c6697624ec

String: ??? Unknown

Output: cc28641637656a42e092b61d3e67af0d

 

 

http://cid-9f07dcb04e907112.skydrive.live.com/self.aspx/My%20Software/Attributor%202.0.exe

Hi Dmitry Post,

When you have finished looking at the film as suggested by Cor it is anyones guess
 what might be the technique or algorithm used to encrypt that input to that output.

Take a look at the

System.Security.Cryptography

Namespace and here is some information on it.>>

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx

In that you have these and more CLASSes etcetera all related to different encryption methods!!

PLEASE NOTE : The Imports statement at the top of this code.

Please use the built in help in VISUAL STUDIO or the EXPRESS EDITION to find out more on the following CLASSes.>>

Regards,

John

Imports System.Security

Public Class Form1

    Private Sub Example()

        'For aes Cryptography.>>
        Dim aesProvider As New Cryptography.AesCryptoServiceProvider

        'For des Cryptography.>>
        Dim desProvider As New Cryptography.DESCryptoServiceProvider

        'For dsa Cryptography.>>
        Dim dsaProvider As New Cryptography.DSACryptoServiceProvider

        'Uses the (ECDH) or Elliptic curve Diffie-Hellman algorithm.>>
        Dim ecd As New Cryptography.ECDiffieHellmanCng

        'For MAC Triple DES.>>
        Dim mTripleDES As New Cryptography.MACTripleDES

        'For MD5 Cryptography.>>
        Dim md5 As New Cryptography.MD5CryptoServiceProvider

        'For RC2 Cryptography.>>
        Dim rc2 As New Cryptography.RC2CryptoServiceProvider

        'For Rijndael managed Cryptography.>>
        Dim rijndael As New Cryptography.RijndaelManaged

        'For rsa Cryptography.>>
        Dim rsa As New Cryptography.RSACryptoServiceProvider

        'For sha1 Cryptography.>>
        Dim sha1 As New Cryptography.SHA1CryptoServiceProvider

        'For sha256 Cryptography.>>
        Dim sha256 As New Cryptography.SHA256CryptoServiceProvider

        'For sha384 Cryptography.>>
        Dim sha384 As New Cryptography.SHA384CryptoServiceProvider

        'For sha512 Cryptography.>>
        Dim sha512 As New Cryptography.SHA512CryptoServiceProvider

        'For triple DES Cryptography.>>
        Dim tripleDES As New Cryptography.TripleDESCryptoServiceProvider

    End Sub

End Class

Monday, January 18, 2010 3:27 AM

From what I understand your saying that there is a no telling who may be able to answer my question? I will try to write a program that will encrypt the input/string and find out what kind encryption gets me the output, but what is most likely is that its a custom string/key the encryption goes through, as any good encrypted product would be. I highly don't think that its just one of the encryption methods without a key/string, but i will test to make sure.http://cid-9f07dcb04e907112.skydrive.live.com/self.aspx/My%20Software/Attributor%202.0.exe


Monday, January 18, 2010 3:44 AM

Simple overview of what I'm working with, Original Text -> MD5 Hashed = 22ac24c481690dd5d90973c6697624ec -> then what i believe another encryption method which includes a secret key -> to get output of: 28641637656a42e092b61d3e67af0d What I do know is that info above so far. Attributor 2.0