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);

+ Recent posts