• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Equivalent to CryptoStream .NET in Java?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an encrypted string in visual basic. NET 2008, the function to decrypt is ::

[Added code tags - see UseCodeTags for details]

now I need to decrypt from java... anyone know how to do this??

Thanks!!
 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Matching that decryption is very easy in Java using the JCE ( http://docs.oracle.com/javase/1.5.0/docs/guide/security/CryptoSpec.html ) . If you have worked with cryptography before then you will find the specification enough but if not then you would do well to buy a book. A good introduction is given in "Beginning Cryptography with Java" written by David Hook published by Wrox.

Note - for the work you are doing PKCS7 padding is equivalent to PKCS5 padding and you should specify PKCS5Padding when creating the Cipher object.
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic