sdk_b89 0.0.6

Package that converts the native kotlin code and method channel libraries to a single decrypt and encrypt function.

Usage

TODO: Package that converts the native kotlin code and method channel libraries to a single decrypt and encrypt function.


void main() {
  runApp(const MyApp());

  //Test
  testDecryption();
}

void testDecryption(){
    final jti = '';
    final salt = '';

    // First of all, we need the jti and salt token for work it.
    final manager = SDKB89.getInstance(jti, salt);

    //Instance of our data that we can convert for example.
    final decrypt = '';
    final encrypt = '';

    //return the data in String type.
    final decryptedText = manager.decrypt(decrypt);
    final encrypted = manager.encrypt(encrypt); 

    //show in on console
    print('Encrypted: $encrypt');
    print('Decrypt: $decrypt');
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Flutter Decryption Example'),
      ),
      body: const Center(
        child: Text('Check console for decryption result.'),
      ),
    );
  }
}