This research suggests a unique ECG security solution based on the data pattern-based encryption paradigm to address security issues in ECG signal transmission or storage environments. According to this concept, the encryption system controls the data security process by extracting key signatures from the ECG signal peaks to identify the characteristics or attributes of the data and encrypt it. To estimate the hashing qualities, the approach is to build a random key pattern based on the signal peaks and extract the signature. The signal was then encrypted and sent to a doctor or signal analyzer. The Bilateral Random Hashing (BRH) is used to achieve this. This updates the hashing generation model by analyzing the parameters using probabilistic distributional characteristics. This crucial motif was applied. This key pattern was utilized to encrypt the data samples using the Downhill Peak Follow (DPF) encryption technique, which follows the strength of the peak value in the ECG waveform. This suggested project is carried out using MATLAB scripting.