hkp_client 0.0.2 copy "hkp_client: ^0.0.2" to clipboard
hkp_client: ^0.0.2 copied to clipboard

Basic Keyserver Client for the HKP key exchange formate based on RFC draft draft-shaw-openpgp-hkp-00.txt

example/hkp_client_example.dart

import 'package:hkp_client/hkp_client.dart';

class Example {
  void main(List<String> args) async {
    String pubkey = '';
    // -- Generate or load Key --

    HkpClient client = new HkpClient('https://keys.openpgp.org');

    client.addKey(pubkey).then((respnse) => {print(respnse)});

    String email_key = await client.getKey("info@example.com");

    // or

    client.getKey("info@example.com").then((key) => {
          // Use key for encryption and send mail
        });
  }
}
0
likes
30
pub points
0%
popularity

Publisher

verified publisheranwski.de

Basic Keyserver Client for the HKP key exchange formate based on RFC draft draft-shaw-openpgp-hkp-00.txt

Homepage

License

GPL-3.0 (LICENSE)

Dependencies

flutter, http

More

Packages that depend on hkp_client