Systems, methods, and devices for treating chronic pains effectively are disclosed. The system is based on the use of randomly generated non-pulsed waveform between a frequency of 5 Hz to 2 KHz. The waveforms generated have characteristics which are pre-defined or based on the input and feedback provided by the patient and/or by the clinician, at the same time conforming to certain safety rules and precautions ensuring patient safety. This disclosure also describes a novel approach of implementing a secure memory stick which can be used to exchange data securely between one device and another device where device could be the device mentioned earlier, an off-line server, or a PC.