473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A CryptoStream puzzler...

To keep this short, assume the function working_test() works perfectly
(because it does), while
failing_test() is not. My GetCodec function returns a Stream (CryptoStream)
object wrapped around the Stream it is passed.

private function working_test()
{
string f = "c:\\test.d at";
StreamWriter w;
StreamReader r;

w = new StreamWriter(Ge tCodec(File.Cre ate(f), CryptoStreamMod e.Write));
w.WriteLine("sh hh.. it's a secret");
w.Close();

r = new StreamReader(Ge tCodec(File.Ope nRead(f), CryptoStreamMod e.Read));
MessageBox.Show (r.ReadLine());
r.Close();
}

private function failing_test()
{
string f = "c:\\test.d at";
Stream s;
StreamWriter w;
StreamReader r;

s = File.Create(f);
w = new StreamWriter(st ream);
w.WriteLine("My FileTag");

w.Flush(); // **** see extra note about this ****

this.dataset.Wr iteXml(GetCodec (s, CryptoStreamMod e.Write),
XmlWriteMode.Wr iteSchema));
s.Close();

s = File.OpenRead(f );
r = new StreamReader(s) ;
if("MyFileTag" != r.ReadLine())
{
throw new System.IO.IOExc eption("not my file!");
}
this.dataset.Cl ear();
this.dataset.Re adXml(GetCodec( s, CryptoStreamMod e.Read),
XmlReadMode.Aut o));
s.Close();
}

In the second test, writing the file succeeds. When reading, however, the
call to this.dataset.Re adXml
throws the following exception:

System.Security .Cryptography.C ryptographicExc eption: Length of the data to
decrypt is invalid.
at
System.Security .Cryptography.C ryptoAPITransfo rm.TransformFin alBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at System.Security .Cryptography.C ryptoStream.Clo se()
at failing_test()

Opening c:\test.dat in WordPad shows the file as you'd expect:

MyFileTag
[ a large block of encrypted xml data]

Note: Before I added the explict call to w.Flush(), the file was written out
backwards like this:

[ a large block of encrypted xml data]
MyFileTag

Odd that. Anyway if anyone can tell me what I need to do to get my xml to
read properly, I'd appreciate it!

Nick
Nov 15 '05 #1
7 2771
You need to call FlushFinalBlock .
Block ciphers typically run their algorithms on blocks larger than 1 byte,
so the last block (however big it is) needs special consideration and
possibly padding.
FlushFinalBlock allows the cipher to deal with the specifics of the last
block of encryption.

-Rob Teixeira [MVP]

"pseudonym" <ps************ *****@cfl.rr.co m> wrote in message
news:uv******** ******@TK2MSFTN GP12.phx.gbl...
To keep this short, assume the function working_test() works perfectly
(because it does), while
failing_test() is not. My GetCodec function returns a Stream (CryptoStream) object wrapped around the Stream it is passed.

private function working_test()
{
string f = "c:\\test.d at";
StreamWriter w;
StreamReader r;

w = new StreamWriter(Ge tCodec(File.Cre ate(f), CryptoStreamMod e.Write)); w.WriteLine("sh hh.. it's a secret");
w.Close();

r = new StreamReader(Ge tCodec(File.Ope nRead(f), CryptoStreamMod e.Read)); MessageBox.Show (r.ReadLine());
r.Close();
}

private function failing_test()
{
string f = "c:\\test.d at";
Stream s;
StreamWriter w;
StreamReader r;

s = File.Create(f);
w = new StreamWriter(st ream);
w.WriteLine("My FileTag");

w.Flush(); // **** see extra note about this ****

this.dataset.Wr iteXml(GetCodec (s, CryptoStreamMod e.Write),
XmlWriteMode.Wr iteSchema));
s.Close();

s = File.OpenRead(f );
r = new StreamReader(s) ;
if("MyFileTag" != r.ReadLine())
{
throw new System.IO.IOExc eption("not my file!");
}
this.dataset.Cl ear();
this.dataset.Re adXml(GetCodec( s, CryptoStreamMod e.Read),
XmlReadMode.Aut o));
s.Close();
}

In the second test, writing the file succeeds. When reading, however, the
call to this.dataset.Re adXml
throws the following exception:

System.Security .Cryptography.C ryptographicExc eption: Length of the data to
decrypt is invalid.
at
System.Security .Cryptography.C ryptoAPITransfo rm.TransformFin alBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at System.Security .Cryptography.C ryptoStream.Clo se()
at failing_test()

Opening c:\test.dat in WordPad shows the file as you'd expect:

MyFileTag
[ a large block of encrypted xml data]

Note: Before I added the explict call to w.Flush(), the file was written out backwards like this:

[ a large block of encrypted xml data]
MyFileTag

Odd that. Anyway if anyone can tell me what I need to do to get my xml to
read properly, I'd appreciate it!

Nick

Nov 15 '05 #2
Rob,

I'd thought of that, but it didn't seem to help. It looks like I'm missing
something fundamental when it comes to mixing encrypted data and
non-encrypted data.

I've attached a console application that demonstrates the problem.

When I write just unencrypted it reads in fine (duh)
When I write just encrypted it reads fine
When I write both, the unencrypted comes in ok, but the encrypted comes in
as blank strings.

Whassup with that? Help!

Nick

"Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
news:OG******** ******@TK2MSFTN GP11.phx.gbl...
You need to call FlushFinalBlock .
Block ciphers typically run their algorithms on blocks larger than 1 byte,
so the last block (however big it is) needs special consideration and
possibly padding.
FlushFinalBlock allows the cipher to deal with the specifics of the last
block of encryption.

-Rob Teixeira [MVP]

"pseudonym" <ps************ *****@cfl.rr.co m> wrote in message
news:uv******** ******@TK2MSFTN GP12.phx.gbl...
To keep this short, assume the function working_test() works perfectly
(because it does), while
failing_test() is not. My GetCodec function returns a Stream

(CryptoStream)
object wrapped around the Stream it is passed.

private function working_test()
{
string f = "c:\\test.d at";
StreamWriter w;
StreamReader r;

w = new StreamWriter(Ge tCodec(File.Cre ate(f),

CryptoStreamMod e.Write));
w.WriteLine("sh hh.. it's a secret");
w.Close();

r = new StreamReader(Ge tCodec(File.Ope nRead(f),

CryptoStreamMod e.Read));
MessageBox.Show (r.ReadLine());
r.Close();
}

private function failing_test()
{
string f = "c:\\test.d at";
Stream s;
StreamWriter w;
StreamReader r;

s = File.Create(f);
w = new StreamWriter(st ream);
w.WriteLine("My FileTag");

w.Flush(); // **** see extra note about this ****

this.dataset.Wr iteXml(GetCodec (s, CryptoStreamMod e.Write),
XmlWriteMode.Wr iteSchema));
s.Close();

s = File.OpenRead(f );
r = new StreamReader(s) ;
if("MyFileTag" != r.ReadLine())
{
throw new System.IO.IOExc eption("not my file!");
}
this.dataset.Cl ear();
this.dataset.Re adXml(GetCodec( s, CryptoStreamMod e.Read),
XmlReadMode.Aut o));
s.Close();
}

In the second test, writing the file succeeds. When reading, however, the call to this.dataset.Re adXml
throws the following exception:

System.Security .Cryptography.C ryptographicExc eption: Length of the data to decrypt is invalid.
at
System.Security .Cryptography.C ryptoAPITransfo rm.TransformFin alBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at System.Security .Cryptography.C ryptoStream.Clo se()
at failing_test()

Opening c:\test.dat in WordPad shows the file as you'd expect:

MyFileTag
[ a large block of encrypted xml data]

Note: Before I added the explict call to w.Flush(), the file was written

out
backwards like this:

[ a large block of encrypted xml data]
MyFileTag

Odd that. Anyway if anyone can tell me what I need to do to get my xml to read properly, I'd appreciate it!

Nick




Nov 15 '05 #3
Hi,

[snipped]

MyFileTag
[ a large block of encrypted xml data]

Note: Before I added the explict call to w.Flush(), the file was written out backwards like this:

[ a large block of encrypted xml data]
MyFileTag

Odd that. Anyway if anyone can tell me what I need to do to get my xml to
read properly, I'd appreciate it!
Not so odd. You have two objects connected to the filestream, a
StreamWriter and a CryptoStream. Well if they both have their own cach and
one flushes before the other (maybe DataSet.savexml flushes after writing).
The order can be reversed.
So it would be good practice to flush before switching from encrypted to
unencrypted and vice versa.

====

Now about the reading error. The problem is the StreamReader. It has some
cach too. If you do one ReadLine it may and will have read more then just
that line, so the position of the underlying stream is incorrect.

Solution:
Use a fixed number of bytes to store your unencrypted data

After flushing the unencrypted data, move to a fixed position, the position
should be greater then the already written string:

if (i == 0 || i == 2)
{
textWriter = new StreamWriter(fi leStream);
Write(textWrite r, "Unencrypte d Data");
textWriter.Flus h();
fileStream.Posi tion = 20;
}

Now after reading (unencrypted) do the same:

if (i == 0 || i == 2)
{
textReader = new StreamReader(fi leStream);
Read(textReader );
fileStream.Posi tion = 20;
}

-or-
create your own StreamReader which does not cach, probely this will be bad
for performance.
note: The StreamReader has a method DiscardBufferDa ta, which loses the
cached data, but it does not restore the position.

Hope this helps,
Greetings


Nick

Nov 15 '05 #4
BMermuys,

Thanks for your explanation... I still find it odd that decorators like
StreamReader do not defer to the BaseStream object for things
like position and buffering. It really limits their flexibility, especially
when there is already a BufferingStream decorator that can
be added when needed.

I guess this is what I was really hoping for:

// warning dream code

Stream stream = new FileStream("myf ile.dat");
// file access - unbuffered
BufferedStream buffered = new BufferedStream( stream, 1024); // add a 1k
buffer
StreamReader reader1 = new StreamReader(bu ffered); //
unencrypted reader
CryptoStream crypto = new CryptoStream(bu ffered, ...); //
encryption scheme
StreamReader reader2 = new StreamReader(cr ypto); //
decrypting reader

If all of the decorating wrappers were to defer to the base stream, (like
they should)

stream.Postion == buffered.Positi on == reader1.Positio n == crypto.Position
== reader2.Positio n

Then mixing and matching data would work fine, even if it isn't practical
:-)

reader1.ReadLin e(); // read unencrypted
reader2.ReadLin e(); // read encrypted
reader1.ReadLin e(); // read unencrypted
reader2.ReadLin e(); // read encrypted
stream.Close()

"BMermuys" <bm************ **@hotmail.com> wrote in message
news:Zc******** *************@p hobos.telenet-ops.be...
Hi,

[snipped]

MyFileTag
[ a large block of encrypted xml data]

Note: Before I added the explict call to w.Flush(), the file was written out
backwards like this:

[ a large block of encrypted xml data]
MyFileTag

Odd that. Anyway if anyone can tell me what I need to do to get my xml to read properly, I'd appreciate it!


Not so odd. You have two objects connected to the filestream, a
StreamWriter and a CryptoStream. Well if they both have their own cach

and one flushes before the other (maybe DataSet.savexml flushes after writing). The order can be reversed.
So it would be good practice to flush before switching from encrypted to
unencrypted and vice versa.

====

Now about the reading error. The problem is the StreamReader. It has some cach too. If you do one ReadLine it may and will have read more then just
that line, so the position of the underlying stream is incorrect.

Solution:
Use a fixed number of bytes to store your unencrypted data

After flushing the unencrypted data, move to a fixed position, the position should be greater then the already written string:

if (i == 0 || i == 2)
{
textWriter = new StreamWriter(fi leStream);
Write(textWrite r, "Unencrypte d Data");
textWriter.Flus h();
fileStream.Posi tion = 20;
}

Now after reading (unencrypted) do the same:

if (i == 0 || i == 2)
{
textReader = new StreamReader(fi leStream);
Read(textReader );
fileStream.Posi tion = 20;
}

-or-
create your own StreamReader which does not cach, probely this will be bad
for performance.
note: The StreamReader has a method DiscardBufferDa ta, which loses the
cached data, but it does not restore the position.

Hope this helps,
Greetings


Nick


Nov 15 '05 #5
Hi,
inline

"pseudonym" <ps************ *****@cfl.rr.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP09.phx.gbl...
BMermuys,

Thanks for your explanation... I still find it odd that decorators like
StreamReader do not defer to the BaseStream object for things
like position and buffering. It really limits their flexibility, especially when there is already a BufferingStream decorator that can
be added when needed.
AFAIK the decorator pattern is about adding extra functionality to a base
object without inheriting or changing the base class. Extending
functionality in a straight line as:
FileStream<-BufferedStream<-CryptoStream<-StreamReader

Usally one kind of data is written to a stream and if differents kinds of
data are written, a multiplexer and a demuliplexer are used.
A multiplexer could be a stream decorator which has methods like
AppendStream(.. ..) or maybe GetNewWrittable Stream(), etc. And a
demultiplexer is used to retrieve the different streams.

I don't think .NET has classes for this. If it's realy important, you might
consider to build it yourself. Sure you can find something on the internet
about mux/demux streams to get you some idea's.

I guess this is what I was really hoping for:

// warning dream code

Stream stream = new FileStream("myf ile.dat");
// file access - unbuffered
BufferedStream buffered = new BufferedStream( stream, 1024); // add a 1k
buffer
StreamReader reader1 = new StreamReader(bu ffered); //
unencrypted reader
CryptoStream crypto = new CryptoStream(bu ffered, ...); //
encryption scheme
StreamReader reader2 = new StreamReader(cr ypto); //
decrypting reader
If all of the decorating wrappers were to defer to the base stream, (like
they should)

stream.Postion == buffered.Positi on == reader1.Positio n == crypto.Position
== reader2.Positio n
I did not say this wasn't true (except for the reader that doesn't have a
position); what I said was that ReadLine() reads more then the line it
returns (because of internal buffer) and therefore the position of the
underlying stream is advanced too much.

greetings

Then mixing and matching data would work fine, even if it isn't practical
:-)

reader1.ReadLin e(); // read unencrypted
reader2.ReadLin e(); // read encrypted
reader1.ReadLin e(); // read unencrypted
reader2.ReadLin e(); // read encrypted
stream.Close()


Nov 15 '05 #6

"BMermuys" <bm************ **@hotmail.com> wrote in message
news:SX******** ************@ph obos.telenet-ops.be...
Hi,
inline
If all of the decorating wrappers were to defer to the base stream, (like they should)

stream.Postion == buffered.Positi on == reader1.Positio n == crypto.Position == reader2.Positio n


I did not say this wasn't true (except for the reader that doesn't have a
position); what I said was that ReadLine() reads more then the line it
returns (because of internal buffer) and therefore the position of the
underlying stream is advanced too much.


Accept that I meant to say reader1.baseStr eam.Position ;-) etc.

Here's a quick little console app that illustrates the my real problem with
this kind of file handling:

[STAThread]
static void Main(string[] args)
{
FileStream fs = File.OpenRead(" c:\\test.txt");
StreamReader r1 = new StreamReader(fs );
StreamReader r2 = new StreamReader(fs );

Console.WriteLi ne("r1: " + r1.ReadLine());
Console.WriteLi ne("fs: " + fs.Position);
Console.WriteLi ne("r1: " + r1.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.ReadLine());
Console.WriteLi ne("fs: " + fs.Position);
Console.WriteLi ne("r1: " + r1.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.BaseStream.P osition);

Console.WriteLi ne("r1: " + r1.ReadLine());
Console.WriteLi ne("fs: " + fs.Position);
Console.WriteLi ne("r1: " + r1.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.ReadLine());
Console.WriteLi ne("fs: " + fs.Position);
Console.WriteLi ne("r1: " + r1.BaseStream.P osition);
Console.WriteLi ne("r2: " + r2.BaseStream.P osition);
r1.Close();
r2.Close();
fs.Close();
}

Assume that c:\test.txt is a text file with the numbers 1 - 100 spelled
out, one per line...
INPUT FILE (abridged)

one
two
three
....
NINETY
NINETY-ONE
NINETY-TWO
....

Console OUTPUT:

r1: one
fs: 1024
r1: 1024
r2: 1024
r2: ONE
fs: 1153
r1: 1153
r2: 1153
r1: two
fs: 1153
r1: 1153
r2: 1153
r2: NINETY-TWO
fs: 1153
r1: 1153
r2: 1153
Press any key to continue

Ok, from the output it's clear that when there isn't any data in the buffer,
or when the buffer doesn't contain enough data,
StreamReader.Re adLine reads starting from the current BaseStream.Posi tion
value. For the first r1.ReadLine this is the
first byte of the file, and the line "one" is read.

Now when r2.ReadLine is called, the position value is already in the middle
of the line that reads "NINETY-ONE" so the
first line of text read by that object is "ONE".

Later when r1.ReadLine is again called, the line is pulled from the internal
buffer and "two" is returned. This is inconsistant behavior. Sometimes it's
using an internal offset, and sometimes it's using the BaseStream.Posi tion
value. If the program continues to call r1.ReadLine the last line read by
r1 will read "NINETY-" because the call to r2.ReadLine reached the end of
the file, but the last line read by r2 will be "one hundred" which is the
last line of my test file.

IMHO the behavior should be either.

1. Each Reader reads sequentially "r1: one", "r2: two", "r1: three",
"r2: four" . This makes the most sense, since both readers in my sample
are hooked up to the same underlying FileStream instance.

2. Each Reader reads independantly "r1: one", "r2: one", "r1: two:, "r2:
two". This makes less sense, and in any case can be easily implemented by
using two different instances of FileStream.


Nov 15 '05 #7
Hi,
[inline]
Ok, from the output it's clear that when there isn't any data in the buffer, or when the buffer doesn't contain enough data,
StreamReader.Re adLine reads starting from the current BaseStream.Posi tion
value. For the first r1.ReadLine this is the
first byte of the file, and the line "one" is read.

Now when r2.ReadLine is called, the position value is already in the middle of the line that reads "NINETY-ONE" so the
first line of text read by that object is "ONE".

Later when r1.ReadLine is again called, the line is pulled from the internal buffer and "two" is returned. This is inconsistant behavior. Sometimes it's using an internal offset, and sometimes it's using the BaseStream.Posi tion
value. If the program continues to call r1.ReadLine the last line read by
r1 will read "NINETY-" because the call to r2.ReadLine reached the end of
the file, but the last line read by r2 will be "one hundred" which is the
last line of my test file.
I agree with almost everything. I do think that the behaviour is
consistant.

You have to see it from a point of performance, at least I think so. The
streamreader needs to return line by line. But how does it know when a line
ends ? By scanning each byte to see if it's a \n, however reading byte by
byte from disk to see if it is an \n is probely slower, then reading 1024
bytes at once into memory and then scanning the memory for \n when each line
is asked.
Now when it reaches the last line in memory it will try to read another 1024
bytes and so one...

You can read/write strings with binarywritter and binaryreader too. It
doesn't use "overread" because the strings are prefixed with the nr of chars
in the line so it doesn't need to scan.

IMHO the behavior should be either.
Wouldn't it be better if all three situations where possible.

HTH
greetz

1. Each Reader reads sequentially "r1: one", "r2: two", "r1: three",
"r2: four" . This makes the most sense, since both readers in my sample
are hooked up to the same underlying FileStream instance.

2. Each Reader reads independantly "r1: one", "r2: one", "r1: two:, "r2:
two". This makes less sense, and in any case can be easily implemented by
using two different instances of FileStream.



Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9567
by: Stingray | last post by:
Are there any know problems with using a MemoryStream as a backing store for a CryptoStream? I'm trying to simply encrypt and decrypt text in memory. I'd like to create some simple methods to encrypt text before writing to a database and decrypt it when reading it back. I figured I'd use a MemoryStream that I can either store as a blob or convert to a string and store as a varchar. Anyway, I can't get the CryptoStream to write to the...
8
3025
by: MattP | last post by:
Ok, with the help of some examples found on the web and some minor modifications on our own, we have a simple and working encrypt and decrypt solution. It runs as a service, watches for files with a specific extension in a specific directory. The files are uploaded by FTP to this directory. The service then does the following steps: 1) Verify it can open the file (so we know it's fully uploaded). 2) Try to decrypt the file with known...
5
12928
by: weixiang | last post by:
Hi, I want to use DES and CryptoStream to serialize a encrypted stream to a file with a header "CRYPT". And I wrote these code: To store: FileStream fileStream = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None); byte signture = AE.GetBytes("CRYPT");
0
1222
by: Daniel Weber | last post by:
Hi! In my code I create a CryptoStream around another stream of my own, with CryptoStreamMode.Read. So I just can read from the CryptoStream. When I close that CryptoStream, however, the underlying stream's Write() method is called, with an empty buffer (offset and count-parameters are also 0). My streams' CanWrite property returns false, so the CryptoStream should not call Write(). It shouldn't call Write() at all, because I created it...
2
4089
by: pesso | last post by:
I have the following code that's taken and modified from a got_dot_net example. I'm trying to decrypt an Xml file that's been encrypted. I can dump the decrypted stream to the console, but if I try to load that into XmlTextReader, it throws XmlException. I'd appreciate your help. //create file stream to read encrypted file back FileStream fsread = new FileStream(args, FileMode.Open, FileAccess.Read);
7
13382
by: semedao | last post by:
Hi, I am using cryptostream on both sides on tcp connection that pass data. I am also use asyc socket , so , the data that recieved in the callback method not always have the length of the buffer I sent. for ex I want to send 10000 bytes I can get it in 10 times of 1000 bytes each. so , I need to know when I complete the receiving , I want to write inside cryptostream and check the position compare it to the length I already know I...
9
1958
by: TC | last post by:
Hey All, I posted this to the Crypto users group and forgot to add the VB.Net users group. I apologize for any confusion. I have been testing a try / catch / finally block and purposely raising exceptions and I've noticed that if an exception of "Length of the data to decrypt is invalid." is raised with the CryptoStream object, later this exception will get raised a second time and thrown to the caller when trying to close the stream...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.