Security.h 961 B

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