This project contains the implementation of 128 bit AES encryption which works on all the platforms (C#, iOS(Swift), Java Android, PHP and Java backend).
Platforms Supported:
-
iOS Swift4)
-
Java Android
-
Dot Net (C#) [Also works with .Net Core]
-
Java Backend
-
PHP
Features:
Cross platform support. Encryption-Decryption works across C#, Swift, Java and PHP.
How to encrypt/decrypt a string:
See code samples for more details. You'll have to perform following steps:
- Use a common secret key across all platform.
- Call the CryptoHelper.encrypt(String) for encryption.
- Call the CryptoHelper.decrypt(String) for decryption.
PHP Uses https://gist.github.com/mataprasad/baefc94bc575b83e13f26bb38de42383
Swift Uses https://gist.github.com/mataprasad/706b60b07b981a26fd27255a78f00dc7
Java Uses https://gist.github.com/mataprasad/23566b1dde487b63b047e7bd906d820a
C# Uses https://gist.github.com/mataprasad/5d746e57d43c197120a82a6b4e51e3c7