AES encoding

 Open Source Project

AES encoding class

public class AESHelper {

    //
    // Class for encrypting and decoding text
    // In MainActivity class
    // encrypt() - encryption
    // decrypt() - decode
    //
    //
...

    public static String encrypt(String seed, String cleartext) throws Exception {
        byte[] rawKey = getRawKey(seed.getBytes());
        byte[] result = encrypt(rawKey, cleartext.getBytes());
        return toHex(result);
    }

    public static String decrypt(String seed, String encrypted) throws Exception {
        byte[] rawKey = getRawKey(seed.getBytes());
        byte[] enc = toByte(encrypted);
        byte[] result = decrypt(rawKey, enc);
        return new String(result);
    }

Source Code - CryptoNOTE_AES.ZIP  https://drive.google.com/file/d/1QhW9SRS6-fWGyV6hAAifxlUFe8PngCn9/view?usp=sharing

 Full Java Project

Open Source Project

 



Comments

Popular posts from this blog

Android Photo Registrar OFLAMERON

Czech Entropy

Android Java Open Source