Skip to content

Can decode the payload encoded using the AES-128 mechanism via a secret key

License

Notifications You must be signed in to change notification settings

sultanaalyami/Aes-128-Decrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Through the API it decodes the payload AES-128 mechanism. It works in the following way:

.NET CLI

  dotnet add package Aes128Decrypt

post form example:

  <form action="https://mycoolapp.com/Post" method="POST" accept-charset='utf-8'>
  <input type='hidden' name='data' value="PZZDt4FMG5ROVen3bSKJ7zQvF_V5cNRCmn0pfhGzKCIS0OcNcq6WlSXmUPluqY"/>
  </form>

c# code:

    using Aes128Decrypt;
    namespace Decrypt
    {
        

         public postdata Post(PayloadData collection)
         {
        
           String app_secret_key = "udhfjgmbdhgteidjfhvhwqas97fj3nfgu3";
    
            var json = collection.PayloadDecrypt(app_secret_key); 

           return json;
        }
    }

json file is payload data after decoding.

Decoded request example:

{  
"Id":1003,
"lang": "en",
"returnUrl":"https://app.sbay.sa",
"AppSettings":{  
  "apiKey":"\"XXX\""

},
"token":"abcdefghijklmnopqrstuv1234567890"
}

The application of this type of encryption is usually for highly sensitive transactions such as payments applications and the like.

About

Can decode the payload encoded using the AES-128 mechanism via a secret key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages