 |
|
 |
etsrfgearygfshtufbfsht4eyudfbfdhertfdvgsdfhy54
|
|
|
|
 |
|
 |
I've been playing around with the xcrypt class and it works really well. I'm interested in the twofish implementation and have just one question.
Under VS 2010 - Every time i debug/inspect the IV/key byte array it is always showing as 0,0,0,0,0,0,0,0... and key is also indicated as 0,0,0,0,0...
I tested by changing the Algorithm type to Blowfish and the IV and key byte array is indeed changing every round.
It doesn't seem to make a difference in effectiveness though(the twofish one is acting like it is placeholding values so the "show can go on").
I was just concerned because it is very important that the IV be "random/non-repeating", and it was a bit disconcerting.
Thanks
Otherwise, excellent, easy to use class!
|
|
|
|
 |
|
 |
when i try to use the BlowFish to crypt and decrypt a text, there are extra symbols/characters after the restored original text!!!!!!
original text: "This is testing string"
decrypted text: "This is testing string"
is it easy to fix?
|
|
|
|
 |
|
 |
hai,why cannot run this project???? the error is
"a project with an output type of class libarary cannot be started directly
in order to debug this project, add an executable project to this solution which reference the library project. set the executable project as the startup project".
What should I do? thx before
|
|
|
|
 |
|
 |
Hello,
I spent the last days in searching a implementation of the Twofish-cipher in C#. Luckless!!! Many posts in several forums recommend this XCrypt libary. I am very interested to use this code but I dont know under which license it has released...
I usually dont have a problem to use a dll from other developers, but my current project on work is based on a single file without any dynamic librarys. I want to implement XCrypt in this project so I want to ask for a permission or the conditions to use this code in combination with proprietary code, and hopefully to prevent tons of hours for a own implementation. Why reinventing the wheel????
mfg. Michael Schaller
|
|
|
|
 |
|
 |
I apply apache license for this project. You can use the source code in your own project. but believe or not, you need not "tons of hours" to re-write it if you want to build from scratch
|
|
|
|
 |
|
 |
You may also be interested in looking at the following, related Code Project articles:
Generic SymmetricAlgorithm Helper[^]
This is a generic helper class that exposes simplified Encrypt and Decrypt functionality for strings, byte arrays and streams for any SymmetricAlgorithm derivative (DES, RC2, Rijndael, TripleDES, etc.).
Making TripleDES Simple in VB.NET and C#[^]
This is a simple wrapper class that provides an easy interface for encrypting and decrypting byte arrays and strings using the 3DES algorithm.
|
|
|
|
 |
|
 |
Stop making ads for your own articles. People can find the articles themselves if they are interested.
|
|
|
|
 |
|
 |
I'm sorry you took it that way, as that was definitely not what was intended. I posted that note simply because I assumed that if you took the trouble to write about encryption helpers, you would be interested in seeing other peoples' similar works. I receive similar posts to my own articles and I always read the article and look at the code to understand what was done differently and why. It's a great learning opportunity for contributors and readers alike.
I will try to remember in the future if I see your articles that you would prefer not to have such messages posted.
|
|
|
|
 |
|
 |
I am trying to decrypt the string encrypted by your application in php.
The problem is the result is not correct - I get the first few characters (4-5) wrong, then the rest is correct.
Do you have any idea why this might happen?
Mihaido
|
|
|
|
 |
|
 |
I encrypted my data in visual studio 2003, but when I use the same code to decrypt it in Visual Studio 2005, the return string contains junk. Do you know why?
|
|
|
|
 |
|
 |
I'm new to encryptiong, so can someone tell me why I am not able to decrypt MD5 or any of the SHA routines? What am I missing?
|
|
|
|
 |
|
 |
MD5 and SHA are hashing methods, not encryption. Hashing is a one-way mechanism (i.e. you take some known data and hash it into an unreadable value, but you are unable to restore it back to the original data). Hashing is typically used for things like password verification, etc. where you create a hash one-time and then prompt the user for the password later and simply re-hash it and verify that they match. It's sometimes preferred over a mechanism that allows you to recreate the data from the encrypted string. Hope this helps.
BTW, to the author of XCrypt: Thanks a million for this code, it's saved me tons of time versus creating my own blowfish routines.
|
|
|
|
 |
|
 |
Hi.
I've noticed that BlowfishAlgorithm::GenerateKey() may generate known weak key.
(but the probability is very low.)
So I made a little fix to avoid weak keys.
Try this.
public override void GenerateKey()
{
if (null == m_rng) m_rng = new RNGCryptoServiceProvider();
byte[] buf = new byte[ KeySizeValue / 8 ];
Blowfish bf; // only for weak key test.
do
{
m_rng.GetBytes(buf);
bf = new Blowfish(buf);
}
while (bf.IsWeakKey);
KeyValue = (byte[])buf.Clone();
}
|
|
|
|
 |
|
 |
Hi,
I'd like to know what OS you need to use this as a lot of the encryption examples I've seen use MS api's that need Win 2K or XP but I'm looking for something that can be used on Win 98 as well.
Thanks for your help,
Alan.
|
|
|
|
 |
|
 |
it is pure .net program, if the .net framework is properly installed, the program should be ok.
|
|
|
|
 |
|
 |
That's not completely true. I'ts pure .NET, but it's a class wrapper to the OS API, and, the win9x family of MS Windows doesn't implements any of the api functions the program needs to run.
|
|
|
|
 |
|
 |
the blowfish algorithm is slower than the Rijndael algorithm from the .NET library.
|
|
|
|
 |
|
 |
just asking.
Which one of the algorith is the fastest to encrypt/decrypt?
|
|
|
|
 |
|
 |
I think Rijndael is one of the best in this regard. At least this has been my experience.
Regards,
Ashok Dhamija
_____________________________
ClickTry
|
|
|
|
 |
|
 |
there is an error when en- and decrypting umlauts with BlowFish. is this only a 7bit Crypto-Alghorithm??
|
|
|
|
 |
|
 |
No, it's a binary algorithm. You have to replace ASCII with UTF8 for instance. Then the string will be encoded as UTF8 (Unicode) instead of 7-bit ASCII.
|
|
|
|
 |
|
 |
Will this work on win ce
Sk8tZ
|
|
|
|
 |