METHOD AND MOBILE APPARATUS FOR RENDERING CODE, METHOD AND SYSTEM FOR AUTHENTICATING DIGITAL CERTIFICATE
A method for rendering a code is provided. The method is implemented by a first mobile apparatus and includes: obtaining (S 201 ) a digital certificate; obtaining (S 202 ) information representing a time and/or a location; obtaining (S 203 ) a code generated using a code generating model based on the information representing the time and/or the location; and displaying (S 204 ) the code along with at least one element that is comprised in the digital certificate on a display of the first mobile apparatus.
1 . A method for rendering a code implemented by a first mobile apparatus, characterized by comprising:
obtaining a digital certificate;
obtaining information representing a time and/or a location;
obtaining a code generated using a code generating model based on the information representing the time and/or the location; and
displaying the code along with at least one element that is comprised in the digital certificate on a display of the first mobile apparatus,
the code generating model being a deep generative model and the entropy of the code is lower than a given threshold, the code being a graphical code displayed as a background of the digital certificate.
2 . The method according to claim 1 , wherein generating the code comprises:
inputting the information representing the time and/or the location to the code generating model.
3 . The method according to claim 1 , wherein generating the code comprises parameterizing the code generating model using the information representing the time and/or the location.
4 . The method according to claim 1 , further comprising, prior to obtaining the information representing the time and/or the location:
receiving a user input for rendering a code, wherein
the location represented by the obtained information is: an estimated location associated with the user input, a predefined area including the estimated location, or, a reference location in the predefined area; and/or,
the time represented by the obtained information is: a time point associated with the user input, a period comprising the time point associated with the user input, or, a reference time point in the period.
5 . The method according to claim 1 , wherein the information representing the time and/or the location comprises encrypted information produced by using a cryptographic technique.
6 . The method according to claim 5 , wherein the encrypted information comprises a hash value corresponding to the time and the location.
7 . The method according to claim 1 , wherein the information representing the time comprises a time code; and/or
the information representing the location comprises information identifying a geolocation, or, information identifying a Bluetooth beacon or a base station.
8 . The method according to claim 1 , further comprising, prior to the displaying step:
combining the code and the at least one element that is comprised in the digital certificate to obtain a combined image.
9 . A method for authenticating a digital certificate,
comprising the method according to claim 1 , and further comprising following steps implemented by a second mobile apparatus:
obtaining the information representing the time and/or the location, obtaining a second code generated using the code generating model based on the information, and displaying the second code on a display of the second mobile apparatus, wherein the second code is same as the code.
10 . The method according to claim 9 , further comprises:
displaying an option to display a third code, or, displaying a third code,
wherein the third code is generated by using the model based on information that represents an adjacent time and/or an adjacent location, the adjacent time being a time adjacent to the time represented by the obtained information or adjacent to a current time, the adjacent location being a location adjacent to the location represented by the obtained information or adjacent to a current location.
11 . A mobile apparatus for rendering a code, comprising:
a display;
a memory configured to store instructions; and
a processor configured to execute the instructions to implement the method according to claim 1 .
12 . A system for authenticating a digital certificate, comprising the mobile apparatus according to claim 11 , and another mobile apparatus comprising:
a display;
a memory configured to store instructions; and
a processor configured to execute the instructions to perform steps of:
obtaining the information representing the time and/or the location, obtaining a second code generated using the code generating model based on the information, and controlling the display to display the second code on a display of the other mobile apparatus, wherein the second code is same as the code.
13 . A computer program product, comprising instructions which, when executed by a mobile apparatus, cause the mobile apparatus to implement the method according to claim 1 .