- 22 Oct 2024
- 1 Minute to read
- DarkLight
One-time password generation
- Updated on 22 Oct 2024
- 1 Minute to read
- DarkLight
Response-Only OTPs
OTP generation in Response-Only mode (overview)
The workflow involves the following steps:
The application integrating the SDK retrieves the Digipass static and dynamic vectors from its data storage.
The application calls the SDK's OTP generation function with the Digipass vectors.
The SDK returns an OTP and, optionally, a return host code (RHC) or an error code. The dynamic vector is updated.
The application updates the dynamic vector in its data storage. To update the dynamic vector, the application can rely on the Secure Storage SDK.
For more information, refer to the OneSpan Mobile Security Suite Product Guide, Secure Storage SDK.
The application processes the OTP, the RHC, or the error code.
Routines of the password generation service in Response-Only mode:
C/C++/Objective C: DPSDK_GenerateResponseOnly
Swift: generateResponseOnly
Java: generateResponseOnly
Challenge/Response OTPs
OTP generation in Challenge/Response mode (overview)
The workflow involves the following steps:
The user receives a challenge from the server.
The user enters it in the application integrating the SDK.
The application integrating the SDK retrieves the Digipass static and dynamic vectors from its data storage.
The application calls the SDK's OTP generation function with the Digipass vectors and the server challenge.
The SDK returns an OTP or an error code. The dynamic vectotr is updated.
The application updates the dynamic vector in its data storage. To update the dynamic vector, the application can rely on the Secure Storage SDK.
For more information, refer to OneSpan Mobile Security Suite Product Guide, Secure Storage SDK.
The application processes the OTP or the error code.
Routines of the password generation service in Challenge/Response mode:
C/C++/Objective C: DPSDK_GenerateResponseFromChallenge
Swift: generateResponseFromChallenge
Java: generateResponseFromChallenge