Crypt.h
Upload User: bjvcxy
Upload Date: 2021-05-06
Package Size: 2054k
Code Size: 1k
Development Platform:

Visual C++

  1. // Crypt.h: interface for the CCrypt class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CRYPT_H__FEB16981_A853_11D6_8649_0088CC174723__INCLUDED_)
  5. #define AFX_CRYPT_H__FEB16981_A853_11D6_8649_0088CC174723__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CCrypt  
  10. {
  11. public:
  12. CCrypt();
  13. virtual ~CCrypt();
  14. public:
  15. static CString Encrypt(CString S, WORD Key); // 加密函数
  16. static CString Decrypt(CString S, WORD Key); // 解密函数
  17. };
  18. #endif // !defined(AFX_CRYPT_H__FEB16981_A853_11D6_8649_0088CC174723__INCLUDED_)