사설 인증서 발급 방법 1. OpenSSL을 이용한 사설 인증서 발급 1.1. OpenSSL 설치 Windows에서는 OpenSSL for Windows를 설치합니다. Linux나 macOS에서는 패키지 관리자를 이용해 설치할 수 있습니다. 1.2. 사설 CA 키와 인증서 생성 사설 CA의 비밀키와 인증서를 생성합니다: openssl genpkey -algorithm RSA -out ca-key.pem -aes256 openssl req -x509 -new -nodes -key ca-key.pem -sha256 -days 3650 -out ca-cert.pem ..
사설 인증서를 이용한 코드 서명 및 검증 1. 사설 인증서를 이용한 코드 서명 및 검증 개요: 사설 인증서를 사용해 폐쇄망에서 코드 서명(Code Signing)을 구현하는 방식입니다. 이때 인증서와 코드 서명을 통해 파일의 무결성과 신뢰성을 검증할 수 있습니다. 사설 인증서는 사설 인증 기관(CA)에서 발급되며, 이를 각 시스템에 배포하여 서명된 파일을 검증합니다. 주요 단계: 사설 인증서 발급 및 배포: 사설 인증 기관(CA)을 구축하여 인증서를 발급하고, 이를 시스템에 배포해 신뢰할 수 있는 루트 인증서로 설정합니다. 코드 서명 및 검증: 발급된 인증서를 사용해 파일이나 DLL에 디지털 서명을 합니다...
#include #include #ifdef _WIN32 #include #include #pragma comment(lib, "Ws2_32.lib")#else #include #include #endifbool convertIPv4ToIPv6(const std::string& ipv4AddrStr, std::string& ipv6AddrStr) { struct in_addr ipv4Addr; struct in6_addr ipv6Addr; // Convert the string IPv4 address to in_addr if (inet_pton(AF_INET, ipv4AddrStr.c_str(), &ipv4Addr) != 1) { std:..
#pragma once#include class cStringUtil{public: static std::wstring MBSToWCS( const std::string& _ssMbsStr, UINT _nCodePage = CP_UTF8 ); // 유니코드 문자열을 멀티바이트 문자열로 변환 static std::string WCSToMBS( const std::wstring& _ssWcs, UINT _nCodePage = CP_UTF8 ); // Format 함수는 가변 인수를 받아 들여 std::wstring을 포맷합니다. template static std::wstring Format( const std::wstring& format, Args&&... args..
C++20 이상: std::format 사용 예시C++20에서는 std::format이라는 새로운 함수를 도입하여 문자열 포맷팅을 더욱 쉽게 할 수 있게 되었습니다. 이 함수는 Python의 str.format과 유사한 방식으로 작동합니다. 다만, std::format은 컴파일 시간에 포맷 문자열을 검사하여 타입 안전성을 보장합니다.#include #include #include templatestd::string stringformat(const std::string& format, Args ... args) { size_t size = snprintf(nullptr, 0, format.c_str(), args ...) + 1; if (size buf(new char[size]); ..
아스트릭 처리된 경로 비교를 해봅시다절대 경로를 비교 할 때 * 처리된 경로까지 넣어서 비교해 봅시다.\ 구현/******************************************************************************* _ _ _ _ __ _____ _ _*| | | | | | | |/ / | __ \ | | | |*| |__| | __ _ ___ | |_ _| ' / | | | | _____ __ | | __ _| |__*| __ |/ _` |/ _ \_ | | | | | ..
- Total
- Today
- Yesterday
- 스쿠버다이빙
- 블루버블다이브팀
- 양파다이브
- 제주도
- Linux
- OpenSource
- 윈도우
- 블루버블다이빙팀
- C
- 다이빙
- DLL
- RSA
- PowerShell
- 현포다이브
- C#
- Thread
- ip
- Windows
- ReFS
- 블루버블
- 서귀포
- 디자인패턴
- 패턴
- 서귀포블루버블
- C++
- 리눅스
- 울릉도
- Build
- 성산블루버블
- 암호화
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |