dwresult := - call key generation function. kg.EncryptedSections := true kg.EncryptedSections := true - set the crypted sections that should be decrypted with the current key. In our example key is not locked to hardware id. Otherwise key is not time limited.kg.UseHardwareLocking := false - set it to true if the key is generating for the particular hardware id. kg.UseKeyExpiration := false - if this value if true then generated registration keys should have expiration date. kg.RegInfoLen := length(ARegistrationName) - define a length of registration name buffer in bytes. kg.RegInfo := pointer(ARegistrationName) - set pointer of the registration name buffer. If the size of key buffer will be less than required then keygen function will return an error. kg.Key := - set pointer of the key buffer to the key generation struct.kg.KeyLen := sizeof(key_buf) - define a size of the key buffer. Of course, size of buffer may be less, it depends on KeyBase and KeyMode, for example, KeyBase = RB_2 and KeyMode = RM_4096 give you a key about 2000 symbols length, but KeyBase = RB_64 and KeyMode = RM_512 - 20 symbols. Remember, size of key buffer must be at least 2048 bytes. In this buffer will be placed registration keys. FillChar(key_buf, sizeof(key_buf), #0) - fill out key memory buffer. Get it from project file, in EnigmaProject - RegistrationFeatures - Constants branch, EncryptedConstant value. Kg.EncryptedConstant := 2113444489 - one more unique constant that is using for encryption/decryption of crypted sections (note: this value has integer type, not a string!). Then, find in Constants branch that describes your KeyMode (for example, if you are using KeyMode = RM_1024 (RSA 1024) then find Mode1024 branch in project file), in the necessary Mode get your Public and Private Keys. Now, take a look at the KeyMode parameter (described above), and remember key mode digits. Constants branch contains all necessary unique constants. Enigma project file is just xml file with the all necessary settings.įind there the following branch: EnigmaProject - RegistrationFeatures - Constants. How to extract these keys from project file? Go through the following steps: Open project file in notepad (project file with the. These unique keys are placed in the project file. Kg.KeyWithHyphens := true - allows to add hyphens to the key (example of the key with hyphens 9S7FN3- AHLSFU-9FE929-TPGTQS).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |