Tag Archive: des3
You are browsing the tag archive for des3.
You are browsing the tag archive for des3.
모 회사의 연동 작업을 하면서 DES3를 사용하게 되었다. 웹을 찾아보아도 PHP와 .Net 간에 CFB 방식의 DES3 예제가 없어서 고생을 좀 했다. 대부분의 PHP 웹사이트가 그러하듯이 내부 인코딩은 euc-kr(또는 KSC5601)이고, .Net은 내부적으로 Unicode를 사용함으로 인해 발생하는 문제점들까지 고려하여 처리되었다. using System; using System.Security.Cryptography; using System.Text; public class Crypto { protected static readonly byte[] KeyDES3 = Convert.FromBase64String(ConfigUtil.GetValue("CipherKey")); [...]