at_chops 2.2.0 copy "at_chops: ^2.2.0" to clipboard
at_chops: ^2.2.0 copied to clipboard

Package for at_protocol cryptographic and hashing operations

Package for Cryptographic and Hashing Operations (CHOPS) such as encryption, decryption, data signing and hashing that can be leveraged by client applications using the at protocol.

Features #

  • Asymmetric public/private key encryption/decryption using RSA
  • Symmetric key encryption/decryption using AES
  • Digest signing and verification for PKAM authentication
  • Data signing and verification for public data in the at protocol
  • Hashing operations

Getting started #

  • Developer should have a basic understanding on how asymmetric and symmetric encryption works.
  • Developers can use their own key pairs/keys to use this package or create new key pairs/keys using [AtChopsUtil]

Usage #

final atChopsKeys = AtChopsKeys.create(atEncryptionKeyPair, null);
final atChops = AtChopsImpl(atChopsKeys);
final data = 'Hello World';
final encryptedString = atChops.encryptString(data, EncryptionKeyType.rsa_2048);
final decryptedString = atChops.decryptString(encryptedString, EncryptionKeyType.rsa_2048);
0
likes
160
points
7.85k
downloads

Publisher

verified publisheratsign.org

Weekly Downloads

Package for at_protocol cryptographic and hashing operations

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, at_commons, at_utils, crypto, cryptography, crypton, dart_periphery, ecdsa, elliptic, encrypt, pointycastle

More

Packages that depend on at_chops