Routines for security
The
personal ID (ÒpersonnummerÓ) of each subject in the HUBIN database
is encrypted for security and integrity reasons. The DES encryption
algorithm is used. The source-code is supplied by professor Stefan
Arnborg.
Automatic encryptation
Whenever
a record with a personal ID is entered into the database, the personal
ID is automatically encrypted and the encrypted 16-byte string is
stored in the database.
The algorithm ensures that a particular personal
ID is always encrypted to the same string. This means that the encrypted
string can be used as a key in the database.
Only authorized personnel can decrypt the
string to produce the original personal ID on demand.
|