Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Ribbit App: How to encrypt/decrypt the username, password?

Any suggestions?

1 Answer

Hello,

Sounds like an interesting addition to the app. I haven't thought about doing that, but would be interested as well. Would maybe have Encrypt and Decrypt methods that modify a string passed to them and then return the encrypted/decrypted string. What level of encryption would you want? You could maybe read the ascii code of each character in the string and modify it based on a set rule, or simply have a method that swaps characters (A=5, B=# etc). Not very strong encryption though. If I experiment with it I will post in here. Meanwhile look forward to any suggestions from other people.

Paul :)

Here's a link to some encryption in Java. I think I need a bit of time to read and hope to understand it though. lol :)

https://code.google.com/p/aes-encryption-samples/wiki/HowToEncryptWithJava