Code Monkey home page Code Monkey logo

aescrypt-android's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿง‘โ€๐Ÿ’ป I'm a Senior Android Engineer and offer the following consultancy services:

    • Android App design, build and test services
    • Android SDK specific consultancy, how to design, build, distribute open or closed source SDKs in the Android ecosystem
    • App security and hardening techniques
    • Gradle: preformence optimisation, test automation, CI and CD to Google Play or maven central
    • Code Review: improving team processes, architectural and/or security review
    • Android technical interviews - Do you have a need for Android technical resource and desire unbiased technical review of potential candidates?
  • ๐Ÿ”ญ My most recent poisition was working with Help Scout building an Android app and SDK

    • Day to day using MVI/Clean architectrue utilising Kotlin and Coroutines Flow, Room, Bitrise
    • Most proud of the real-time Chat SDK which I built from ground up using Push notifications, WebSockets with UI using MotionLayout
  • ๐ŸŒ I blog at scottyab.com about Android, software engineering and various other interests.

  • ๐Ÿ—ฃ I enjoy speaking at conferences and have presented internationally about Android and app security. See speaker timeline for more details

  • ๐ŸŽ‰ Google officially recognised my Android community contributions in 2016 by inviting me to the Google Developer Experts (GDE) programme where I was an active member until 2022.

  • ๐Ÿ‘€ Looking for: speakers to give tech talks at the SW Mobile meetup.com group that I founded in 2012 and co-run. Submit talk here

  • ๐Ÿ“š Co-Author of the Android Security Cookbook 2013, ISBN:978-1-78216-716-7

  • ๐Ÿ’ฌ Ask me about Android development, Mobile security, Trail running or Coffee!

  • ๐Ÿ“ซ How to reach me: via Linkedin or Twitter

  • ๐Ÿ˜„ Pronouns: Him/He

  • โšก Fun facts:

    • ๐ŸŒฏ๐ŸŒฎ Favourite food is anything Mexican, but especially burritos
    • ๐Ÿปโ˜•๏ธ Enjoy craft beer and freshly ground good coffee
    • ๐Ÿƒโ€โ™‚๏ธ๐Ÿ” Love long disance trail running espeically in the mountains

aescrypt-android's People

Contributors

doridori avatar scottyab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aescrypt-android's Issues

Encryption result of AESCrypt-Android library differs from result in php?

According to the usage example, using password = password and message = hello world results in the encrypted message 2B22cS3UC5s35WBihLBo8w==

However in php using the same password and message following the snippet here results in the encrypted message lMwL6ztvVavgsTu7NJE/kw== which is different.

See complete php code snippet here

<!DOCTYPE html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
 <!-- following this snippet<br>
      https://www.urbaninsight.com/2012/06/13/encrypt-and-decrypt-strings-php
 -->

 <?php
  $string = "hello world";
  $password = "password";
  $method = "aes-256-cbc";

  $encrypted = openssl_encrypt($string, $method, $password);
  echo "ENCRYPT:<br>$string<br>$password<br>$encrypted<br><br>";

  $decrypted = openssl_decrypt($encrypted, $method, $password);
  echo "DECRYPT:<br>$encrypted<br>$password<br>$decrypted";
 ?>

 <!-- result: lMwL6ztvVavgsTu7NJE/kw==
  -->

 </body>
</html>

Is the AESCrypt-Android library not compatible with php or is there something, I'm overseeing currently?
Thank you in advance!
Taifun

Plain Text Error

Hello, Am using the library for a messaging app am working on. Before using the library messages are sent in plain text so after adding the library the decrypt message crashes the app for those old messages. Since the wrapped in the try catch block was expecting to catch the error for plain text.
Need help please. :(

stack trace below

Fatal Exception: java.lang.IllegalArgumentException
Fatal Exception: java.lang.IllegalArgumentException: bad base-64
at android.util.Base64.decode(Base64.java:161)
at android.util.Base64.decode(Base64.java:136)
at android.util.Base64.decode(Base64.java:118)
at com.scottyab.aescrypt.AESCrypt.decrypt(AESCrypt.java:124)

Use less Library Delete this Shit

After apk decompiler it clearly show all my string (jsoneditoronline.org)
ex: this.encryptedMsg = AESCrypt.encrypt("url", "myurl");

Then why this useless library.. don't wast developer time .. just delete thus shit library

dont call this shit encrypt and decrypt

How to use aes256 mode?

I use AESCrypt.encrypt("123456","123456") and I got "LK09ZUQfjEWnBhyah8VNXg=="
but the result should be "U2FsdGVkX1/bIqQCoW3eTfBoynP0mswP1PE6HM97jTk=" .
What's the problem?

IV must be 16 bytes long

Hello,

Im getting (IV must be 16bytes long) when using the advance mode.

My encryptedText = "HE9257Ykdrnb7zZTbNYLcLNzsg24t2aEftUZ7Tr0BU0="
My IV = "618wNQX6K3k2343c" //My IV is 16byte long

I base 64 decode both using Base64.decode(encryptedText, Base64.NO_WRAP)
and Base64.decode(IV, Base64.NO_WRAP)
then pass in (SecretKeySpec, byte[] IV, byte[] encryptedText ) as parameter for advance mode,
but gave me an error (IV must be 16 bytes long).

Crashing if invalid BASE64 String Given

java.lang.IllegalArgumentException: bad base-64

in this line :
byte[] decodedCipherText = Base64.decode(base64EncodedCipherText, Base64.NO_WRAP);

This occurs when base64EncodedCipherText is not a proper BASE64 value .
Write something to check for a proper BASE64 and then pass it to the function.

PHP Equivalent

I would like to know if there is a php equivalent of this library for decrypting a string encrypted in android. Thanks

Encryption result is different on Android and IOS

Hello,

I am using this library in my android project and its counter part https://github.com/Gurpartap/aescrypt in ios project. I am encrypting same text with same encryption key, but it is giving me different results on ios and android.

I am using this key : 25c35734b1ef623ca2a7f730cf2fea8b790739ba

String to encrypt is : Password

Encrypted String IOS : W3LyAxKq2+QdDBfKUGVgTg==
Encrypted String Android : zdgSimKva1jblici7F8DGw==

NULL POINTER EXCEPTION :

Encryption and decryption is not worked on some devices. It gives null pointer instead of encrypted or decrypted string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.