Back to project page lastpass-android.
The source code is released under:
Copyright (c) 2013 Nicholas Hinds Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
If you think the Android project lastpass-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nhinds.lastpass.android; // ww w. j a v a2 s .c o m import org.apache.commons.codec.digest.DigestUtils; import android.content.Context; import android.provider.Settings.Secure; public class LastPassDeviceId { /** * Get a device identifier for lastpass based off this android's device id. */ public static String get(Context context) { String androidId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID); // Include this application's package name so the id would be different if 2 applications on the same android device used the // library return DigestUtils.shaHex(context.getPackageName() + "-" + androidId); } }