-
Notifications
You must be signed in to change notification settings - Fork 2
/
cBlowfish.h
27 lines (21 loc) · 792 Bytes
/
cBlowfish.h
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
//---------------------------------------------------------------------------
#ifndef cBlowfishH
#define cBlowfishH
#include <vcl.h>
#include <stdio.h>
#include "blowfish.h"
class cBlowfish: public CBlowFish{
private:
TStringList *m_lines;
public:
~cBlowfish(){ delete m_lines; }
cBlowfish(){ m_lines = new TStringList; }
cBlowfish( char *key ): CBlowFish( key ){ m_lines = new TStringList; }
bool SaveToFile(const AnsiString &FileName);
bool LoadFromFile(const AnsiString &FileName);
AnsiString EncodeChypher(const AnsiString MegaText);
AnsiString DecodeChypher(const AnsiString MegaText);
__property TStringList* Lines = { read = m_lines, write = m_lines };
};
//---------------------------------------------------------------------------
#endif