Around and About .NET World

Il blog di Marco Minerva
posts - 1671, comments - 2232, trackbacks - 2135

My Links

News

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

domenica 29 giugno 2008

[70-443] EncryptByPassPhrase e DecryptByPassPhrase

SQL Server 2005 mette a disposizione due comandi T-SQL che consentono di cifrare e decifrare una stringa utilizzando una chiave simmetrica: EncryptByPassPhrase e DecryptByPassPhrase. Essi utilizzano una passphrase per generare la chiave simmetrica che viene utilizzata  per eseguire le vere e proprie operazioni, rispettivamente, di cifratura e decifratura del testo specificato.

Technorati Tags: , ,

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ ADO .NET & SQL Certificazioni SQL Server ]

Quando utilizzare StringBuilder

Recentemente mi è stato chiesto quando conviene utilizzare uno StringBuilder piuttosto che concatenare le stringhe con il +. L'argomento è stato affrontato più volte, ma credo sia comunque utile riportare quando dice MSDN, in modo da chiarire la situazione:

String objects are immutable in that they cannot be changed once created. Methods that act on strings actually return new string objects. Therefore, for performance reasons, large amounts of concatenation or other involved string manipulation should be performed with the StringBuilder class.

 

Technorati Tags: , , , ,

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (4) | Filed Under [ C# VB .NET .NET Compact Framework ADO .NET & SQL ASP .NET .NET 3.0 ]

Powered by:
Powered By Subtext Powered By ASP.NET