View full-text article in PMC Sensors (Basel). 2019 Jan 15;19(2):326. doi: 10.3390/s19020326 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Data Encryption. 1:functionEncryption (data_file) 2: if user confirm data preservation over blockchain then 3: Generate a symmetric key ksym 4: C←Encryptsym (data_file,ksym) 5: Ck←Encryptasym(ksym,rkpub) 6: else 7: Do nothing 8: end if 9:end function