cdeclog

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

SHA1 1

SHA1 해쉬함수, boost 라이브러리로 구현

# SHA1 해쉬 함수의 경우 crypto++ 라이브러리로 사용 가능 하지만, 간단히(?) boost 라이브러리도 가능. http://www.cryptopp.com/ 실행 : http://coliru.stacked-crooked.com/a/4d6de3acd08dee1c#include #include using namespace std; #include #include string ToSHA1(const string s) { boost::uuids::detail::sha1 sh; sh.process_bytes(s.c_str(), s.length()); unsigned int digest[5]; sh.get_digest(digest); string r; for(int i = 0; i < 5; ++i) { r..

Dev/Encryption 2014.10.22
이전
1
다음
더보기
프로필사진

cdeclog

Bright Size Life

  • 분류 전체보기 (300)
    • 일상 (105)
    • 사진 (71)
    • 책읽기 (4)
    • Dev (119)
      • C++ (55)
      • .NET (7)
      • Java (2)
      • devops (0)
      • Windows (26)
      • Linux (2)
      • SQL (4)
      • Data (6)
      • Network (4)
      • Web (1)
      • Encryption (6)

Tag

boost, Asio, 구글캘린더, template, C++ 0x, Lambda, spark, atl, C++, REST, operator overloading, Hadoop for Windows, C++0x, withdll, aphache spark, dll, new, libtcmalloc_minimal, COM+, Git,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • https://cdecl.github.io/ 이동

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바