Root > Reference > All Types > TTEAKey

Type TTEAKey

Previous pageReturn to chapter overviewNext page   

Key for TEA encryption.

 

Unit

EEncrypt

 

Syntax

 

Code (Delphi)

TTEAKey = packed array[0..3]of Cardinal;

 

Remarks

This type holds binary key which can be used for symmetrical encryption and decryption using TEA cipher.

 

Important!

This type is also used as salt storage. See PSalt/TSalt type.

 

You do not need to free/release/dispose this key - it does not contain any allocated memory. However, it is strongly recommended to call TEADestroyKey function once you have finished working with key - to erase it with zeros.

 

This key is derived from string (or binary) password via TEADeriveKey function. You can freely export/import this key as RAW binary value, but you need to be careful - because the key have the same power as password. I.e. leaking this key means leaking your password.

 

Use TEAEncrypt function to encrypt "clear text" data, use TEADecrypt function to decrypt encrypted data and get "clear text" data back.

 

See also




Send feedback... Build date: 2018-11-26
Last edited: 2018-11-26
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_type_eencrypt_tteakey.php