Windows Phone 초보자는 여기에 있습니다.'EncryptStringToBytes_Aes'이름이 현재 컨텍스트에 존재하지 않습니다.
Windows Phone AesManaged Class에서 AES 튜토리얼을 확인하고 샘플 프로젝트에서 샘플을 사용해 보았습니다.
나는 그것이 작동하지 수 있으며 오류
에게 이름을 부여 유지 'EncryptStringToBytes_Aes'어떤 도움이 높게 평가되어 현재 상황
에 존재하지 않습니다.
코드
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace myProject.Services
{
class Encrypter
{
public static string encryptMessage(String message)
{
string cryptex = null;
try
{
using (AesManaged theAes = new AesManaged())
{
byte[] encryptedStream = EncryptStringToBytes_Aes(message, theAes.Key, theAes.IV);
cryptex = System.Text.Encoding.UTF8.GetString(encryptedStream, 0, encryptedStream.Count());
}
}
catch (Exception ex)
{
Debug.WriteLine("Error: {0}", ex.Message);
}
return cryptex;
}
}
}
EncryptStringToBytes_Aes 메소드를 구현 했습니까? 자습서에 표시된대로 ... – ThaMe90