gainer_crypto 0.0.3 gainer_crypto: ^0.0.3 copied to clipboard
A Library that can produce Cryptographic hash or can encrypt and decrypt text with key.
GaiNeR Crypto #
This is a package developed by GaiNeR Technologies to generate Common Cryptographic Hash. Also It can encrypt or decrypt texts or String with some well known methods.
Features #
- Cryptography
/example/lib/crypto
- Common Hash
/example/lib/crypto/hash
- Create Hash String From Text
- Create Hash Bytes From Text
- Create Hash String From Chunk Of Texts
- Create Hash Bytes From Chunk Of Texts
- Common HMAC Hash
/example/lib/crypto/hmac_hash
- Create HMAC Hash String From Text
- Create HMAC Hash Bytes From Text
- Create HMAC Hash String From Chunk Of Texts
- Create HMAC Hash Bytes From Chunk Of Texts
- Common Hash
- Advanced Cryptography
/example/lib/crypto_advanced
- Advanced Hash
/example/lib/crypto_advanced/advanced_hash
- Create Hash String From Text by combining multiple methods
- Create Hash Bytes From Text by combining multiple methods
- Create Hash String From Chunk Of Texts by combining multiple methods
- Create Hash Bytes From Chunk Of Texts by combining multiple methods
- Create Hash String From Text by repeating one method multiple times
- Create Hash Bytes From Text by repeating one method multiple times
- Create Hash String From Chunk Of Texts by repeating one method multiple times
- Create Hash Bytes From Chunk Of Texts by repeating one method multiple times
- Advanced HMAC Hash
/example/lib/crypto_advanced/advanced_hmac_hash
- Create HMAC Hash String From Text by combining multiple methods
- Create HMAC Hash Bytes From Text by combining multiple methods
- Create HMAC Hash String From Chunk Of Texts by combining multiple methods
- Create HMAC Hash Bytes From Chunk Of Texts by combining multiple methods
- Create HMAC Hash String From Text by repeating one method multiple times
- Create HMAC Hash Bytes From Text by repeating one method multiple times
- Create HMAC Hash String From Chunk Of Texts by repeating one method multiple times
- Create HMAC Hash Bytes From Chunk Of Texts by repeating one method multiple times
- Advanced Hash
- Key Generation For Encryption and Decryption
/example/lib/key/key_generator
- IV Generation For Encryption and Decryption
/example/lib/key/iv_generator
- Encryption and Decryption
/example/lib/encrypt_decrypt
- AES
/example/lib/encrypt_decrypt/aes
- Fernet
/example/lib/encrypt_decrypt/fernet
- Salsa20
/example/lib/encrypt_decrypt/salsa20
- RSA
/example/lib/encrypt_decrypt/rsa
- RSA Sign and Verification
/example/lib/encrypt_decrypt/rsa_signature
- AES
Getting started #
To use only the Common Cryptographic functions
import 'package:gainer_crypto/crypto.dart';
To use the Advanced Cryptographic functions
import 'package:gainer_crypto/crypto_advanced.dart';
To use the encryption decryption functions or the key generation
import 'package:gainer_crypto/encrypt_decrypt.dart';
To use all together
import 'package:gainer_crypto/gainer_crypto.dart';
Usage #
All functions from this library start with prefix gr. For eg.
grHashString(GRCryptoType type, String input);
Here grHashString is a function name.
All the class names and enum names start with prefix GR. For eg.
GRKey key = grKeyFromUtf8("32 Length Key...");
GRIV iv = grIVFromLength(16);
GRCryptoType hashType = GRCryptoType.md5;
GRCryptoTypeHMAC hmacHashType = GRCryptoTypeHMAC.hmacSHA1;
Here, GRKey and GRIV are classes GRCryptoType and "GRCryptoTypeHMAC" are enums grKeyFromUtf8 and grIVFromLength are functions
Crypto #
Hash
This supports
Include short and useful examples for package users. Add longer examples
to /example/lib
folder.
const like = 'sample';
HMAC
Advanced Crypto #
Advanced Hash
Advanced HMAC
Key Generation #
IV Generation #
Encyption Decryption #
AES
Fernet
Salsa20
RSA
Signature Verification #
RSA Signing and Verification
Additional information #
Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.