rfc2898

How to encrypt in VBScript using AES?

I am looking to encrypt some data using Rijndael/AES in VBScript using a specific key and IV value. Are there any good function libraries or COM components that would be good to use? I looked at CAPICOM; it allows a passphrase only, and won't allow setting specific key and IV values. ...

Java equivalent of C#'s Rfc2898DerivedBytes

Hi. I was wondering if anyone have tried to do an equivalent of Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(secret, saltValueBytes); byte[] secretKey = key.GetBytes(16); in Java. Where secret is a string(password), and saltValueBytes is, well, a salt in byte array. I've tried stuff, but can't seem to wrap my head around it. Tha...

PBKDF2 implementation in C# with Rfc2898DeriveBytes

Guys, I'm trying to implement a PBKDF2 function in C# that creates a WPA Shared key. I've found some here: http://msdn.microsoft.com/en-us/magazine/cc163913.aspx that seems to produce a valid result, but it's one byte too short... and the wrong PSK value. To test the output, I am comparing it to this: http://www.xs4all.nl/~rjoris/wpaps...

PasswordDeriveBytes vs Rfc2898DeriveBytes, Obsolete but way faster

Guys, I'm working on a encryption functionality based on classes inherited from SymmetricAlgorithm such as TripleDes, DES, etc. Basically there're two options to generate consistent key and IV for my algorithm class, PasswordDeriveBytes and Rfc2898DeriveBytes, both inherit from DeriveBytes abstract class. The PasswordDeriveBytes.GetByt...

Public Overrides Function GetBytes() As Byte() is obsolete

What does the poet try to say? Public Overrides Function GetBytes() As Byte() is obsolete: Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications. Should i replace this one... Dim keyBytes As Byte() keyBytes = password.GetBytes(keySize / 8) ...with what? ...

A Question about .net Rfc2898DeriveBytes class?

What is the difference in this class? as posed to just using Encoding.ASCII.GetBytes(string object); I have had relative success with either approach, the former is a more long winded approach where as the latter is simple and to the point. Both seem to allow you to do the same thing eventually but I am struggling to the see the point i...