Skip to main content
. 2019 Jan 15;19(2):326. doi: 10.3390/s19020326
Algorithm 1 Data Encryption.
  • 1:

    functionEncryption (data_file)

  • 2:

        if user confirm data preservation over blockchain then

  • 3:

            Generate a symmetric key ksym

  • 4:

            CEncryptsym (data_file,ksym)

  • 5:

            CkEncryptasym(ksym,rkpub)

  • 6:

        else

  • 7:

            Do nothing

  • 8:

        end if

  • 9:

    end function