The invention provides a data
encryption and decryption method, a data uploading end, a data receiving end and a
system, the method comprises an
encryption method and a decryption method, the
encryption method comprises the following steps: acquiring a data
plaintext and an AES key, and encrypting the data
plaintext in combination with the AES key to obtain a data
ciphertext; and encoding the data
ciphertext to obtain a character string
ciphertext, and writing the character string ciphertext into a block chain
database. The decryption method comprises the following steps: acquiring a data ciphertext, a decryption
password and a preset
password, and authenticating the decryption
password and the preset password; when the
authentication is passed, outputting a data
plaintext; and when the
authentication is not passed, outputting the data ciphertext. According to the data encryption and decryption method, the data uploading end, the data receiving end and the
system, different bloom filters can be set for
verification for different groups of data through a password
authentication mode without
key distribution, differential
verification of the data is realized,
data security is ensured, and the problems are solved that in the prior art, an encryption
algorithm needs to manage a key, and potential safety hazards exist in
data security.