A method for transforming a secure electronic device, associated with a first identifier and having a sensitive mode disabled after production, for a new sensitive use, comprising the steps of:
- (i) externally computing a cipher of said first identifier with a predetermined function of said first identifier and a predetermined secret key;
- (ii) transforming an accessible metal layer of said electronic device to form an activation pattern representing said externally computed cipher of the first identifier;
- (iii) obtaining a value representative of said activation pattern in said electronic device;
- and (iv) computing a second identifier with said transformed electronic device by feeding a reverse function of said predetermined function with said value and said secret key, to trigger a comeback to said sensitive mode if said second identifier is equal to said first identifier.