Generating Hash or String via TouchID in Swift [cl

2019-06-23 18:48发布

问题:

I want to make an unique string or hash via Touch ID on iPhones in Swift. I search a lot about it but I didn't find a solution to make it.

回答1:

you can NOT do this.

you can use universally unique identifier (UUID) of an ios Device.

let uuid = NSUUID().UUIDString

or generate your own unique identifier using irreversible algorithms.