descryptoserviceprovider cryptoprovider = new descryptoserviceprovider(); int i = cryptoprovider.keysize; memorystream ms = new memorystream(); cryptostream cst = new cryptostream(ms,cryptoprovider.createencryptor(bykey,byiv),cryptostreammode.write);
descryptoserviceprovider cryptoprovider = new descryptoserviceprovider(); memorystream ms = new memorystream(byenc); cryptostream cst = new cryptostream(ms,cryptoprovider.createdecryptor(bykey,byiv),cryptostreammode.read); streamreader sr = new streamreader(cst); return sr.readtoend(); } } }