Since 1 January 2011, all restricted-access data available from PhysioNet have been provided to authorized users in unencrypted form via PhysioNetWorks, so the procedure described on this page is needed only to decrypt files that were downloaded in 2009 and 2010.
Restricted-access data available from PhysioNet were formerly provided as AES-encrypted files. These notes demonstrate how to decrypt these files, using a short text file as an example.
- If you have not previously done so, install GnuPG (gpg). This is a standard component of most GNU/Linux distributions; versions are also freely available for Mac OS X and MS-Windows.
- Download sample.key.
- Download sample.txt.gpg.
- In a terminal window, run the command:
gpg --passphrase-file sample.key sample.txt.gpg
This command decrypts sample.txt.gpg using sample.key, and writes the decrypted contents into a new file (sample.txt). Some newer versions of gpg may require an additional --batch option, like this:gpg --batch --passphrase-file sample.key sample.txt.gpg
- To confirm that you have decrypted sample.txt.gpg correctly, compare sample.txt with original.txt.
To verify that the procedure above works as described, we tested a number of versions of GnuPG. On Mac OS X 10.5, we tested GNU Privacy Guard version 1.4.9. On MS-Windows XP, we tested gpg4win-1.1.4 (which installs gpg 1.4.9), as well as Cygwin's gpnupg 1.4.9-2. On Fedora and Ubuntu GNU/Linux, we tested gpg 1.4.9 and several later and earlier versions. Any version produced after October 2000 should work.
Please be aware that encrypted files are also compressed. For example, the decrypted and uncompressed sample.txt is 674K, nearly eleven times the size of sample.txt.gpg (62K).
Name Last modified Size Description
Parent Directory -
original.txt 2009-04-05 20:52 674K
sample.key 2009-04-05 22:23 43
sample.txt.gpg 2009-04-05 20:52 62K
If you would like help understanding, using, or downloading content, please see our Frequently Asked Questions. If you have any comments, feedback, or particular questions regarding this page, please send them to the webmaster. Comments and issues can also be raised on PhysioNet's GitHub page. Updated Friday, 28 October 2016 at 16:58 EDT |
PhysioNet is supported by the National Institute of General Medical Sciences (NIGMS) and the National Institute of Biomedical Imaging and Bioengineering (NIBIB) under NIH grant number 2R01GM104987-09.
|