1
0

Security.h 1.0 KB

1234567891011121314151617
  1. //---------------------------------------------------------------------------
  2. #ifndef SecurityH
  3. #define SecurityH
  4. //---------------------------------------------------------------------------
  5. #define PWALG_SIMPLE 1
  6. #define PWALG_SIMPLE_MAGIC 0xA3
  7. #define PWALG_SIMPLE_STRING ((RawByteString)"0123456789ABCDEF")
  8. #define PWALG_SIMPLE_MAXLEN 50
  9. #define PWALG_SIMPLE_FLAG 0xFF
  10. RawByteString EncryptPassword(UnicodeString Password, UnicodeString Key, Integer Algorithm = PWALG_SIMPLE);
  11. UnicodeString DecryptPassword(RawByteString Password, UnicodeString Key, Integer Algorithm = PWALG_SIMPLE);
  12. RawByteString SetExternalEncryptedPassword(RawByteString Password);
  13. bool GetExternalEncryptedPassword(RawByteString Encrypted, RawByteString & Password);
  14. //---------------------------------------------------------------------------
  15. bool WindowsValidateCertificate(const unsigned char * Certificate, size_t Len, UnicodeString & Error);
  16. //---------------------------------------------------------------------------
  17. #endif