A method for establishing an authenticated connection between a dialysis machine and external medical equipment, the method comprising, in the dialysis machine: - establishing a short-range wireless connection between the dialysis machine and the external medical equipment, wherein a first shared key is associated with the short-range wireless connection; characterized in that the method further comprises: - obtaining a second shared key from a set of second shared keys, wherein the set of second shared keys has been generated, in the dialysis machine, using an algorithm that takes the first shared key as an input parameter, wherein the algorithm is known by the dialysis machine and the external medical equipment and wherein the algorithm is only available to devices that are trusted by the dialysis machine, - generating a first signature, using the obtained second shared key and a dialysis machine system time, - sending, to the external medical equipment, an authentication request comprising the generated first signature, - receiving, from the external medical equipment, an authentication accept comprising a second signature that has been generated in the external medical equipment using the external medical equipment system time and a second shared key from a corresponding set of second shared keys that has been generated in the external medical equipment using the same algorithm with the first shared key as an input parameter, and - verifying the authenticity of the external medical equipment using the second signature. - establishing a short-range wireless connection between the dialysis machine and the external medical equipment, wherein a first shared key is associated with the short-range wireless connection; characterized in that the method further comprises: - obtaining a second shared key from a set of second shared keys, wherein the set of second shared keys has been generated, in the dialysis machine, using an algorithm that takes the first shared key as an input parameter, wherein the algorithm is known by the dialysis machine and the external medical equipment and wherein the algorithm is only available to devices that are trusted by the dialysis machine, - generating a first signature, using the obtained second shared key and a dialysis machine system time, - sending, to the external medical equipment, an authentication request comprising the generated first signature, - receiving, from the external medical equipment, an authentication accept comprising a second signature that has been generated in the external medical equipment using the external medical equipment system time and a second shared key from a corresponding set of second shared keys that has been generated in the external medical equipment using the same algorithm with the first shared key as an input parameter, and - verifying the authenticity of the external medical equipment using the second signature. - obtaining a second shared key from a set of second shared keys, wherein the set of second shared keys has been generated, in the dialysis machine, using an algorithm that takes the first shared key as an input parameter, wherein the algorithm is known by the dialysis machine and the external medical equipment and wherein the algorithm is only available to devices that are trusted by the dialysis machine, - generating a first signature, using the obtained second shared key and a dialysis machine system time, - sending, to the external medical equipment, an authentication request comprising the generated first signature, - receiving, from the external medical equipment, an authentication accept comprising a second signature that has been generated in the external medical equipment using the external medical equipment system time and a second shared key from a corresponding set of second shared keys that has been generated in the external medical equipment using the same algorithm with the first shared key as an input parameter, and - verifying the authenticity of the external medical equipment using the second signature.