AES decryption

From: Todor Todorov (tt_at_cdm.dk)
Date: 04/07/05


Date: Thu, 7 Apr 2005 02:28:41 +0200

I have an urgent problem I simply don't know how to solve. I have some data
that is encrypted with symetric AES algorythm and I have a 128 bit key to
decrypt it. How do I decrypt the data, preferebly in CAPICOM, but CAPI will
do as well.

Here is some Java (booooo) code that should do the trick (I've been told)
// Decrypt message with secret key.
byte[] secretKey = .... 16 bytes;
Cipher messageCipher = Cipher.getInstance("AES"); // AES
messageCipher.init(Cipher.DECRYPT_MODE, secretKey);
byte[] decrypted = messageCipher.doFinal(encrypted, 0, encrypted.length);



Relevant Pages

  • Re: Decrypt
    ... are you simply looking for a utility to decrypt ... > document (by using secret key). ... > private key avaiable by CSP. ... > code will be review by client), not by Crypto API (source code is not ...
    (microsoft.public.platformsdk.security)
  • Re: Open and Decrypt Private Key
    ... | How do you decode the secret key with your ... I know to Base64Decode the private key, but how do I decrypt it ... | find out the secret key for the message passing? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: gpg and outlook 2002
    ... so I have figured how I am supposed to decrypt in Outlook ... > to linux and was able to decrypt in Thunderbird with no problem. ... You need to transfer the secret key. ...
    (Debian-User)
  • Re: [opensuse] public and private key locations [another problem]
    ... On Friday 23 March 2007 06:21, Carlos E. R. wrote: ... locate my "secret key". ... Then it seemed as though I was able to decrypt the files. ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ...
    (SuSE)
  • Re: Automate GPG or PGP to make an .exe
    ... Prompt the user for the secret key, ... Decrypt the file accordingly. ... Color me stupid, but, I am struggling to see the problem with this. ...
    (sci.crypt)