using System.Security.Cryptography;
.....
byte[] secretkey = System.Text.Encoding.UTF8.GetBytes("키");
byte[] contents = System.Text.Encoding.UTF8.GetBytes("내용");
HMACSHA1 hmacsha1 = new HMACSHA1(secretkey);
byte[] hashValue = hmacsha1.ComputeHash(contents);
string oauth_signature = Convert.ToBase64String(hashValue);
.....
byte[] secretkey = System.Text.Encoding.UTF8.GetBytes("키");
byte[] contents = System.Text.Encoding.UTF8.GetBytes("내용");
HMACSHA1 hmacsha1 = new HMACSHA1(secretkey);
byte[] hashValue = hmacsha1.ComputeHash(contents);
string oauth_signature = Convert.ToBase64String(hashValue);
'LivePhoto개발' 카테고리의 다른 글
C# 싱글톤 구현 및 클래스 다이어그램 (0) | 2011.01.13 |
---|---|
C# Byte <-> String 문자열 변환 (0) | 2010.11.09 |
환경설정 주의사항 (0) | 2010.11.05 |
플러그인 프로젝트 세팅 순서 (0) | 2010.11.05 |
라이브포토 기본 실행순서 (0) | 2010.11.05 |