static void Main(string[] args) { Protection protection = new Protection(); try { using (Aes aes = Aes.Create()) { Console.WriteLine("Enter text to encrypt: "); string text = Console.ReadLine(); byte[] encrypted = protection.EncryptDataAes(text, aes.Key, aes.IV); string eText = String.Empty; foreach (var b in encrypted) { eText += b.ToString() + ", "; } Console.WriteLine(Environment.NewLine + $"Encrypted text: {eText}"); string decrypted = protection.DecryptDataAes(encrypted, aes.Key, aes.IV); Console.WriteLine(Environment.NewLine + $"Decrypted text: {decrypted}"); //byte[] Console.WriteLine("Fingerprint Encryptation ...."); var data = Convert.FromBase64String( "/6D/qAB6TklTVF9DT00gOQpQSVhfV0lEVEggMzU3ClBJWF9IRUlHSFQgMzkyClBJWF9ERVBUSCA4ClBQSSA1MDAKTE9TU1kgMQpDT0xPUlNQQUNFIEdSQVkKQ09NUFJFU1NJT04gV1NRCldTUV9CSVRSQVRFIDAuOTAwMDAw/6QAOgkHAAky0yXNAArg8xmaAQpB7/GaAQuOJ2TNAAvheaMzAAku/1YAAQr5M9MzAQvyhyGaAAomd9oz/6UBhQIALANP5gNf4QNP5gNf4QNP5gNf4QNP5gNf4QNUEwNk5ANWXANnoQNPJANe+ANRowNh9gNMtANcCwNLEgNaFQNT7gNktwNWtANoCwNMHwNbWANMeQNbxQNRmQNh6gNN4ANddANdwQNwgQNbcgNtvANj4AN32gNZCwNq2gNq3AOAOwNgJgNzYQNmvAN7SANykgOJfAN+dgOXwQNurwOE0wODggOdzwNuTAOEXANyxgOJuwNqTAN/jwN1fgOM/gN4KAOQMAOMxQOo7AN4aAOQfQOIcwOjvQNbVwNtmwNdmgNwUwNpjAN+pwNmGgN6hQNpSAN+VwNvNQOFcwNqywOAJwNzIAOKJwN2PAON4QNrqAOBMAN8ugOVrAN4cQOQhwNxuAOIdgN7IQOTwQN9ZgOWegOGFAOg5QORKQOuMQN68AOThgPSEQP8FQOT/QOxlQIdEAIi4QNtqAODlgOR4QOvDgOP7gOstwPdzgIangAAAAAAAAAAAAAAAAAAAAAAAAAAAA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X/o9h/cWYeI8Z7z7T/ec1/OwjTzPRQNNOQPpAQJswjTT9p9EQZOjTkRjzfoIwych1IfoMz+oyYUH9jTq+kBA3Rps8mno6vyEYRphR/0Iwj/1Mlzej435FIw7nIs/nPQ5P8h/1P8Audp/Ww/uNmmH6ntfSAqa2xbDGnFNli0sYxfSShX/oQ=="); using (var a = new FileStream("encriptadoOrig.wsq", FileMode.Create)) { a.Write(data, 0, data.Length); } var result = protection.EncryptDataAes2(data, aes.Key, aes.IV); using (var a = new FileStream("encriptado.wsq", FileMode.Create)) { a.Write(result, 0, result.Length); } var dresult = protection.DecryptDataAes2(result, aes.Key, aes.IV); using (var a = new FileStream("desencriptado.wsq", FileMode.Create)) { //string converted = Encoding.UTF8.GetString(buffer, 0, buffer.Length); a.Write(dresult, 0, dresult.Length); } } Console.WriteLine(Environment.NewLine + $"Predd any key to continue ...."); Console.ReadKey(); } catch (Exception e) { Console.WriteLine(Environment.NewLine + $"Error: {e.Message}"); } }