SHA-256 알고리즘으로 문자열을 암호화 하고, Base64 방식으로 인코딩하는 간단한 방법 /// /// SHA256 Hash Return /// /// /// private string SHA256HashToBase64(string Data) { SHA256Managed HashTool = new SHA256Managed(); Byte[] PhraseAsByte = System.Text.Encoding.UTF8.GetBytes(string.Concat(Data)); Byte[] EncryptedBytes = HashTool.ComputeHash(PhraseAsByte); HashTool.Clear(); return Convert.ToBase64String(EncryptedBytes); } SHA51..
출처 : http://blog.naver.com/whwlfnsl?Redirect=Log&logNo=70112831675[C# 으로 만든 DLL asp에서 사용]- C#으로 만든 base64 암호화 및 복호화 함수 생성후 asp 에서 사용- 파일 첨부함. ☞ C# 클래스라이브러리 프로젝트 생성 - ComPlusExample ☞ System.EnterpriseSevices 참조추가 ☞ AssemblyInfo.cs 수정[assembly: ComVisible(false)] 를 [assembly: ComVisible(true)]로 변경 ☞ ComPlusClass 클래스 파일추가 using System; using System.Collections.Generic; using System.Linq; using Sys..
- Total
- Today
- Yesterday
- rowspan
- json
- jQuery Mobile
- jQuery
- CSS
- ASP.NET
- 자바스크립트
- JavaScript
- JS
- Excel
- drag&drop
- 셀렉터
- 제이쿼리
- Mobile
- Ajax
- workbook
- 저장프로시저
- Style
- SVG
- jquery chart
- grid
- 프로시저
- css3
- html5
- IE
- MSSQL
- WCF
- Chart
- WebApi
- radius
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |