Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Semplice classe scritta in C# per criptare stringhe

public class Crypter
{
private const string chiave= "AxTYQWCvGTFRbgLL"; //16 byte
private const string iv = "QWExcfTyUxxLOafO"; //16 byte


public Crypter()
{
//
// TODO: Add constructor logic here
//
}

public static string Encode(string S)
{
RijndaelManaged rjm = new RijndaelManaged();
rjm.KeySize = 128;
rjm.BlockSize = 128;
rjm.Key = ASCIIEncoding.ASCII.GetBytes(chiave);
rjm.IV = ASCIIEncoding.ASCII.GetBytes(iv);
Byte[] input = Encoding.UTF8.GetBytes(S);
Byte[] output = rjm.CreateEncryptor().TransformFinalBlock(input, 0, input.Length);
return Convert.ToBase64String(output);
}

public static string Decode(string S)
{
RijndaelManaged rjm = new RijndaelManaged();
rjm.KeySize = 128;
rjm.BlockSize = 128;
rjm.Key = ASCIIEncoding.ASCII.GetBytes(chiave);
rjm.IV = ASCIIEncoding.ASCII.GetBytes(iv);
try
{
Byte[] input = Convert.FromBase64String(S);
Byte[] output = rjm.CreateDecryptor().TransformFinalBlock(input, 0, input.Length);
return Encoding.UTF8.GetString(output);
}
catch
{
return S;
}
}
}

posted @ martedì 14 giugno 2005 17.38

Print

Comments on this entry:

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by ed hardy at 25/06/2010 4.39
Gravatar
5555555544Believe it or ed hardy can pep up the sizzling summer too. Details like custom T Ed Hardy Clothing sale shirt, half shell T- shirts Cheap Ed Hardy etc. Personalizing hoodies, Hip hop hoodies, Ed Hardy Sale Custom hoodies, Fashion hoodies Cheap Ed Hardy Clothing and Women hoodies are some of ed resilient clothing are very accepted among the part and container of your next celebration nightfall with and portray clothes Discount Ed Hardy Have you can stock a ravishing look Discount Ed Hardy Clothing which every establish conscious individual can die for. Depending before the level of order Ed Hardy Tops and accessory prices can give a cool appearance. ed robust mens Swim Trunks manufactures not only one to be the youngsters Ed Hardy Jeans If not, then dont ravage your dull and many, the standard sports qualities. Ed Hardy Hoodies accepts online commands as a broad transform quotient in Tortoise Ed Hardy T Shirts Black, Gunmetal, and boring life just with Ed Hardy suits or Ed Hardy Swimwear firm apparels and witness the appreciation in the eyes of sports to which attributes to the enhancement of form and pose. Without mentioning Ed Hardy Kids jeans, novel and contemporary fashions continue imperfect. They help their tattooed caps Ed Hardy Kids Clothing sunglasses, wrist bands, socks Ed Hardy Kids T Shirts bags, boots, shoes, purses, and scarves can make by choosing from the catalogues Christian Audigier relations, or albums vacuous in the . Nevertheless insertion break online tips in small quantities can duck uninvited confusion Ed Hardy Christian Audigier Mark your visual belongings.

# lest time steal away

Left by calat at 01/09/2010 10.14
Gravatar
conscientious efforts from you as hair wigs hair wigs and extension to be the lace wigs black hair wig black hair extension clip on hair extensions more you can utilize wigs wayne and garth costumes braiding hair extensions human wigs consider their hair an lace front wigs custom full lace wigs hair you can straighten long hair wigs wigs are lighter than capped wigs quality wigs human hair wigs short hair wigs to do that every six to hairdo hair along with the latest trends full lace wigs dreadlock wig weaving of cornrow braids hair wigs be prepared to take care natural hair wigs hair wigs it by using liquid wig.

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by guo at 13/04/2011 4.12
Gravatar

pupular video formats inluding MTS to AVI, MTS to WMV, MTS to MPEG-4, H.264/MPEG-4 AVC, MOV, M4V, etc. Besides, it support you to edit the video before you convert MTS to MOV and creat the video at your will. Have a try and you will appreciate this wonderful MTS to MOV Converter to
convert mts to mov the other software:vob converterand
ipad converteror mkv to avi converter
audio converter for macDo you need to convert your audio files to other audio formats on Mac/Mac os x system? Audio Converter for Mac provides you an ideal solution to solve that problem.2

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by KM at 17/05/2011 8.54
Gravatar
Due to DjVu files is more and more, there are many friends who have to Convert DjVu to PDF to read the files more comfortable. Fortunately, the following great DjVu to PDF Converter will support you to Convert DjVu to PDF online without any troubles! DjVu to PDF Converter is 100% Free software, which will help you to convert djvu to pdf without and loss of the original quality. Once you owned professional DjVu to PDF Converter, you would not be boring at Converting DjVu to PDF.

LLL

# DISSHOUESHE

Left by DISSHOUESHE at 27/05/2011 11.54
Gravatar
did not think you would be so mean a man three years ago. He knew christian lacroix my woman, knowing that we have a

marriage contract Christian Louboutin Sale, but he still looks like the

stain christian lacroix, to the night before we were married , he will be strong christian lacroix . storm. Fang Yan

could not believe his own Hear, eyes panic panic measures
Discount Christian Louboutin Shoes
Cheap Christian Louboutin
Christian Louboutin Sale
Christian Louboutin On Sale
Discount Christian Louboutin
Christian Louboutin Shoes

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by nixon0008 at 25/06/2011 3.43
Gravatar
Thank you for your article, I also have something good to share with you, this is: empire waist bridesmaid dresses

# BURBERRY

Left by hermes at 18/07/2011 8.29
Gravatar

Do you need a little more stUyle than a simple leather or gucci leather belt? If you are looking for something a little dressier, black gucci belt has that, too. red gucci belt offer many styles of white gucci bel for women, including several genuine authentic gucci belt . They also offer super thin burberry check scarf , which often go perfect with that ultra-dressy outfit. So what about the gentlemen? Of course fake burberry scarf does that as well, and of course all in high quality materials. For the casual man, there are many burberry shawl with the interlocking G buckle, just as were available for the ladies. New this year no longer burberry giant check scarf n sale pattern around the bag body, instead of pink burberry scarf , and is so high on the new form crocodile pattern pattern, Striae this cold-blooded, proud temperament of snakes, burberry nova scarf with a unique temperament cold and haughty, the ladies and a modern version of the woman, the Queen to create. The blue burberry scarf on a short handle simply nice, real burberry scarf precious shining leather, believe me, that camel burberry scarf courageous and able business woman, such a quality would have women burberry wallet are the latest craze in town, and you can see many people wearing different kinds of black burberry wallet to give their outfit a more unique and yet distinctive feel. burberry nova wallet not only serves the purpose of holding your burberry leather wallet together and keeping your pants up, it also gives you a chance to express yourself and your personality through wearing burberry that make a statement.



# louboutin on sale

Left by 350000 at 04/08/2011 9.58
Gravatar

We were holding the people who have been constantly chosen initial for your staff back university, studio beats
heart beats the people that are dwelling a really lively life-style nowadays, beats by dr dre tour
pro beats signing up for marathons and stuff like that, beats solo
Monster Diddy Beats and those which appear to be they may be the people lording that on the health club and also working a long way and also a long way around the fitness treadmill machine with out their particular bronchi overflowing.
Monster Miles Davis Tribute If you must past experiences the whole set of going through who R includes to fruition through your partner's routines,

just beats
solo beats Kenny R flights are actually surefire we could some nights melodic jazz recall.data files even begun to offer for sale in any enormous process, not to mention your partner's 1986 launching,
dre beats tour
Monster Miles Davis Tribute Duotones, was basically typically the chop who developed your man widely known world-wide. Ever since then,
monster Turbine
power beats R seems to have simply just turned out to be one of the many top-selling actors from all-time, not to mention your partner's musical technology form, despite the fact panned from a large number of what individuals don't label your partner's give good results ??true?? jazz,ralph lauren jackets, is not just established but more important.
pro beats cds are a variety of by yourself give good results not to mention relationship with the help of manufacturers like Aretha Franklin,ralph lauren big and tall, Whitney Houston, Natalie Cole,
studio beats Toni Braxton and other wines. R even on going to master your partner's on-stage function, not to mention Kenny R flights begun to secure traction at the musical technology economy. Your partner's by yourself give good results was basically for the reason that established for the reason that any sort of non-singer??s across the world.

# Monster Turbine

Left by 350000 at 04/08/2011 10.01
Gravatar

At the moment just where everyone mintage is normally foremost in order to sole this Guernsey opportunities still this normal activities, Red Sox Beats
Dr Dre Beats Tour you can easlily quite simply get rid of excess on top of the particular worth of computer or possibly trivial fact the software is not round without end. , Kobe Bryant Beats
Beats By Dre Studio asics mexico 66baja store. Lady Gaga Heartbeats Remember in which learning how to hop increased will take determination and also perform. LeBron James Headphones Thus avoid being disheartened when email address details are having a although. Monster Beats Pro
Monster Beats Solo Merely retain with that and also shortly, you are going to observe a positive change within your video game. Monster Lamboghini You can easily figure out how to hop increased making use of many different strategies which you'll want to study on the physical fitness instructor or perhaps mentor;
Monster Butterfly
Monster Ferrari almost all you should do will be reveal that you would like the education routine changed to make your system carry out increased advances. You can even research video tutorials and also sources on the web which will help an individual discover ways to hop increased. Monster Turbine
Monster Turbine Pro Jumping increased can be a beneficial talent inside those two sporting activities. Inside volleyball, with all the basketball to be able to breeze in to the oxygen approach previously mentioned every person's brain, relatively away from attain,
Monster Beats Solo HD it is possible to struck that again when you can acquire large upwards in to the oxygen.
Cheap Monster Diddy Beats Inside baseball, the particular holder is found large previously mentioned the particular court docket, rather than every person will make any slam dunk. Once you discover ways to hop increased, you possibly can make these kinds of profitable photos.

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by kitt at 05/09/2011 3.33
Gravatar

if you want to buy a pair of jeans that will give you the right fit and the beautifull look and the feeling of comfortable there is no better choice than the True Religion Jeans options .when compared with the other jeans brands you will find that not many can stand out the competition the true religion bran can offer.i think the best way of buy True Religion Jeans On Sale is to shop onlie .of course you can buy it at the local shops you wil be able to try all of the different true religion jeans on . True Religion Jeans Sale when you want to buy it on the internet then you might be some sites out there that wil give you free or discounted shipping if you spend over a certain dollar amout. Cheap True Religion Jeans once you have gone through all of your choice found the best deals on true religion jeans you are going to want to make sure that you are sharing your newfound with your friend and your family. Discount true Religion Jeans they will found true religion jeans are that they are looking for . Cheap True Religion

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by csdc at 17/10/2011 9.03
Gravatar
3herosoft iPhone to Computer Transfer is a smart tool for synchronizing your iPhone to your computer. It's the ideal iPhone manager to backup music and video to your computer, match your iPhone contents to iTunes and seamlessly copy files from computer to your iPhone. Read and export photos and videos shot by the device as well.

3herosoft iPod to Computer Transfer is easy to use iPod transfer, iPod copy, and iPod to computer software. You can not only easily transfer music, video, photo, ePub, pdf, Audiobook, Voice Memos, Camera Roll (iOS 4 above), Podcast and TV Show from computer to iPod without iTunes, but also smoothly backup them to computer. For purchased songs and downloaded books/iTunes U/podcasts, it can also transfer them into local computer, sync to iTunes library. Even you can add music/videos into iPhone library.
more useful software: ipad to computer transfer |iphone sms to computer transfer | iphone contact to computer | iphone call list transfer | iphone ibooks transfer | ipod mate for mac | iphone photo transfer |ipad mate |dvd to ipod converter |dvd to iphone converter | dvd to ipad converter



# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by abeeder at 28/11/2011 10.56
Gravatar

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by new era hats at 11/01/2012 5.18
Gravatar

# re: Criptare e decriptare stringhe utilizzando l'algoritmo di Rijndae in .net

Left by Cheap NFL Jerseys at 18/01/2012 7.54
Gravatar

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 3 and type the answer here:
 

Live Comment Preview:

 
«febbraio»
domlunmarmergiovensab
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910