Skip to content
Discussion options

You must be logged in to vote

https://dotnetfiddle.net/w3t7NW

using System;
using System.Security.Cryptography;
using System.Text;
using System.IO;
					
public class Program
{
	private static string  _sharedSecret = "ivTSSKYhS3paNnmgsZisXQ==";
	
	public static void Main()
	{
		Console.WriteLine("Please enter a password to use:");
            string password = Console.ReadLine();

            Console.WriteLine("Your encrypted string is:");
            string encryptedstring = Encrypt(password);
		
			string aesEncrypt = EncryptStringAES(password);
            Console.WriteLine(encryptedstring);
		
			Console.WriteLine(aesEncrypt);
            Console.WriteLine("");

            Console.WriteLine("Your decrypted string…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by marcialwushu
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant