Security
palm5x.txt
Associated article: Security & Palm OS 5.x
Tags: Security
Unpublished source code accompanying the article by Michael Yam in which he presents techniques for using masked records and encrypting/decrypting data on the PalmOS 5.x platform. Requires UNZIP/PKUNZIP to extract.
Security & Palm OS 5.x
by Michael Yam
Example 1:
gPrivateRecordVisualStatus =
(privateRecordViewEnum)PrefGetPreference (prefShowPrivateRecords);
if (gPrivateRecordVisualStatus == hidePrivateRecords)
mode = dmModeReadWrite;
else
mode = dmModeReadWrite | dmModeShowSecret;
Example 2:
typedef enum privateRecordViewEnum {
showPrivateRecords = 0x00,
maskPrivateRecords,
hidePrivateRecords
} privateRecordViewEnum;
Example 3:
DmRecordInfo (gMaskedRecDBP, recordNum, &attr, NULL, NULL);
isMasked = (((...


