How to indicate field is locked and contains auto-generated value?

How can I emphasize that the value in a field is auto generated and not editable?

  • User must see the generated code.
  • User must understand that the code is generated as per above fields completed

Design 1:

image1

Design 2:

image2

Design 3:

image3

Design 4:

image4

Design 5:

image5