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..
프로그래밍/.NetFramework
2014. 4. 10. 13:28
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 저장프로시저
- 셀렉터
- IE
- workbook
- ASP.NET
- jQuery
- Chart
- JS
- 프로시저
- WCF
- Mobile
- json
- html5
- radius
- drag&drop
- rowspan
- SVG
- 제이쿼리
- grid
- jQuery Mobile
- jquery chart
- JavaScript
- Style
- MSSQL
- Ajax
- 자바스크립트
- css3
- CSS
- WebApi
- Excel
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함