CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Posts
    3

    Encryption data, migrate code from java to C#

    Hi

    I have some problems to migrate a one piece of code from java to c#. Help me please!

    ...
    private Cipher authCipher;
    private SecretKeyFactory desEdeKeyFactory;
    ...

    SecretKey kEnc = desEdeKeyFactory.generateSecret(new DESedeKeySpec(kenc));

    authCipher.init(Cipher.ENCRYPT_MODE, kEnc);

    byte[] e1 = authCipher.doFinal(reorderBlocks(rndIfdIcc));
    ...
    Last edited by polszewski; October 9th, 2008 at 03:56 AM.

  2. #2
    Join Date
    Oct 2008
    Posts
    3

    Re: Encryption data, migrate code from java to C#

    so, can you tell me what's happen here:

    SecretKey kEnc = desEdeKeyFactory.generateSecret(new DESedeKeySpec(kenc));

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured