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..
출처 : http://www.hoons.kr/board.aspx?Name=asptip&BoardIdx=49374&Page=1&Mode=2 PWDENCRYPT 데이터 암호화비밀번호같은거 암호화하기 딱 좋다. SELECT '방랑개죽' AS '암호화할 문자열' , PWDENCRYPT('방랑개죽') AS '암호화된 문자열' , LEN(PWDENCRYPT('방랑개죽')) AS '암호화된 문자열 길이' , PWDCOMPARE('방랑개죽', PWDENCRYPT('방랑개죽')) AS '암호화 비교문자열-0:FALSE,1:TRUE' , PWDCOMPARE('대나무강아지' , PWDENCRYPT('방랑개죽')) AS '암호화 비교문자열-0:FALSE,1:TRUE'
- Total
- Today
- Yesterday
- 자바스크립트
- SVG
- WebApi
- JS
- WCF
- drag&drop
- 제이쿼리
- html5
- 저장프로시저
- Mobile
- jquery chart
- workbook
- json
- Excel
- JavaScript
- IE
- MSSQL
- Chart
- jQuery Mobile
- rowspan
- radius
- Ajax
- 프로시저
- grid
- CSS
- ASP.NET
- 셀렉터
- jQuery
- css3
- Style
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |