Closed GoogleCodeExporter closed 9 years ago
Hi,
In your encrypt() method, first you calculate the pattern's SHA1, then you
calculate the CRC32 of that SHA1. So as far as I know, you can't decrypt it to
original pattern in method decrypt().
If you look at LockPatternView.java, you could see that Cell has a getId()
method. The ID starts from 0. To encrypt the pattern to a list of IDs, you can
consider using that method. Please note that for security, you should use
encryption / decryption with a cipher (such as AES...). I'm not good at cipher,
but Google gives me some examples:
-
http://techie-experience.blogspot.com/2012/10/encryption-and-decryption-using-ae
s.html
- http://www.code2learn.com/2011/06/encryption-and-decryption-of-data-using.html
Hope you could manage to solve it :-)
Original comment by haibison...@gmail.com
on 9 Jan 2014 at 11:26
I've updated the wiki page Encryption. It shows you the implementation of
IEncrypter in the demo app. Please have a look...
- https://code.google.com/p/android-lockpattern/wiki/Encryption
Original comment by haibison...@gmail.com
on 9 Jan 2014 at 11:33
That Is Much Easy to understand ... Thanks, Now I can implement My Custom
any type Encryption and can decrypt. But Basic Numbers are clear to get.
Thanks.
*RegardsMuhammad Mubasher UsmanSoftware Engineer ( Lead )Iterative
Technologies Pvt.Islamabad , Pakistan*
Original comment by mian.mub...@gmail.com
on 10 Jan 2014 at 2:58
Original comment by haibison...@gmail.com
on 10 Jan 2014 at 6:02
Original comment by haibison...@gmail.com
on 11 Jan 2014 at 1:47
Original issue reported on code.google.com by
mian.mub...@gmail.com
on 9 Jan 2014 at 10:52