Search code examples
iosswifttouch-id

Generating Hash or String via TouchID in Swift


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.


Solution

  • 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.