Been Awhile
I thought it had been long enough since the last entry. For awhile I was very busy which left me little time to work on the library.
Someone asked if VBCorLib supported any kind of encryption like the .NET counterpart. I had to reluctantly say no it doesn't. At that point I felt there was a big piece missing. Something that many people use.
I had been very busy so I couldn't do much with the library, however, things have slowed down a little bit. And through that crack of free time I've been studying the System.Security.Cryptography namespace. Cryptography is not my area of knowledge, so I've been having to study the CryptoAPI functions in windows and have knocked out a few of the classes to see how things can come together with such a large namespace. Eventually I will need to implement ciphers and hashes that aren't supported by the Windows API. But I want to have a solid foundation first.
The way .NET exposes cryptography is a bit different than normal in the sense that you can ultimately use a CryptoStream object to read or write data that gets encrypted/decrypted on the fly. My only experience in VB classes with ciphers is that I had to pass in all the data at once. Now I can write data in small chunks just like I would to a file. And the really cool thing about the CryptoStream class is that it reads or writes from an underlying stream, including another CryptoStream object. So you can use multiple ciphers simultaneously.
Well, it's a big set of very powerful classes, so like I said, I've been studying up on them to see how things work together. It can be pretty complicated at times. But, I'm sure it will be a useful set of classes.
Kelly
Someone asked if VBCorLib supported any kind of encryption like the .NET counterpart. I had to reluctantly say no it doesn't. At that point I felt there was a big piece missing. Something that many people use.
I had been very busy so I couldn't do much with the library, however, things have slowed down a little bit. And through that crack of free time I've been studying the System.Security.Cryptography namespace. Cryptography is not my area of knowledge, so I've been having to study the CryptoAPI functions in windows and have knocked out a few of the classes to see how things can come together with such a large namespace. Eventually I will need to implement ciphers and hashes that aren't supported by the Windows API. But I want to have a solid foundation first.
The way .NET exposes cryptography is a bit different than normal in the sense that you can ultimately use a CryptoStream object to read or write data that gets encrypted/decrypted on the fly. My only experience in VB classes with ciphers is that I had to pass in all the data at once. Now I can write data in small chunks just like I would to a file. And the really cool thing about the CryptoStream class is that it reads or writes from an underlying stream, including another CryptoStream object. So you can use multiple ciphers simultaneously.
Well, it's a big set of very powerful classes, so like I said, I've been studying up on them to see how things work together. It can be pretty complicated at times. But, I'm sure it will be a useful set of classes.
Kelly
2 Comments:
You are the man! I've never moved to .NET for many reasons, most of them religious (VB6 and C/C++ are the only languages we'll ever need and who wants a 20+ MB runtime?) but I will admit there are certain parts of it which are nice. And here you are bringing them to us in pure, classic VB!
By Anonymous, at 7/14/2006 1:41 PM
Thanks for the support! I've really enjoyed putting this thing together and hearing about people using it. Who says VB6 is dead?
Thanks!
Kelly
By Kelly Ethridge, at 7/27/2006 11:12 PM
Post a Comment
<< Home