BouncyCastleSecurity class

A singleton class that provides cryptographic operations such as encryption, decryption, and hashing using Bouncy Castle.

Constructors

BouncyCastleSecurity()
Constructor for BouncyCastleSecurity. Use BouncyCastleSecurity.instance to access the singleton instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createPassword({required String masterKey, required int index, required String order}) Future<String>
Creates a secure password based on the master key, index, and order.
decrypt({required String encryptedData, required String password}) Future<String>
Decrypts the provided AES-encrypted data.
encrypt({required String data, required String password}) Future<String>
Encrypts the provided data using AES encryption.
encryptDataMD5({required String data}) Future<String>
Hashes the provided data using MD5.
generateIndex() Future<int>
Generates a secure index value.
generateSHA1HashValue({required String data}) Future<String>
Generates a SHA-1 hash value for the given data.
getVersion() Future<String>
Retrieves the version of the Bouncy Castle library being used.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance BouncyCastleSecurity
Provides a singleton instance of BouncyCastleSecurity.
no setter