Skip to content

Device Information

// Returns: Future<String>
// A unique identifier for the device, used for tracking and security verification
// This identifier is persistent across app sessions and is generated by the SDK
final deviceId = await AlphynSdk.getDeviceId();
print('Device ID: $deviceId');
// Output: Device ID: 817D56BE-0BC4-4CE4-8516-8F582EEBE0FC

Purpose: Retrieves a unique, persistent identifier for the device. This ID is essential for:

  • Device tracking across sessions
  • Security event correlation
  • Device fingerprinting
  • User verification processes
// Returns: Future<String>
// A cryptographic hash of the application binary
// Used to verify app integrity and detect tampering or modifications
final appHash = await AlphynSdk.getAppHash();
print('App Hash: $appHash');
// Output: App Hash: 64f3f5b47a856403dc48bfbaac0fcdb89f414f63dafb9c18e8b6d87f2a43caec

Purpose: Generates and returns a cryptographic hash of your application. This hash is critical for:

  • Detecting app tampering or unauthorized modifications
  • Verifying application integrity
  • Ensuring the app has not been repackaged or altered
  • Compliance and security auditing