Symmetric class

Constructors

Symmetric()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Methods

decryptBytes(String encryptedBase64, String passphrase) Uint8List
Decrypts a byte array containing nonce[24] + cipherText[] using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
decryptBytesAsync(String encryptedBase64, String passphrase) Future<Uint8List>
Decrypts a byte array containing nonce[24] + cipherText[] using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
decryptRaw(Uint8List encryptedBuffer, String passphrase) Uint8List
Decrypts a byte array containing nonce[24] + cipherText[] using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
decryptRawAsync(Uint8List encryptedBuffer, String passphrase) Future<Uint8List>
Decrypts a byte array containing nonce[24] + cipherText[] using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
decryptString(String encryptedBase64, String passphrase) String
Decrypts a byte array containing nonce[24] + cipherText[] into a String using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
decryptStringAsync(String encryptedBase64, String passphrase) Future<String>
Decrypts a byte array containing nonce[24] + cipherText[] into a String Future using NaCl SecretBox: https://github.com/ilap/pinenacl-dart#a-secret-key-encryption-example
encryptBytes(Uint8List buffer, String passphrase) String
Encrypts the given data using NaCl SecretBox and returns a Base64 string containing nonce[24] + cipherText[]. The 24 first bytes represent the nonce, and the rest of the buffer contains the cipher text.
encryptBytesAsync(Uint8List buffer, String passphrase) Future<String>
Encrypts the given data using NaCl SecretBox and returns a Base64 string Future containing nonce[24] + cipherText[]. The 24 first bytes represent the nonce, and the rest of the buffer contains the cipher text.
encryptRaw(Uint8List buffer, String passphrase) Uint8List
Encrypts the given data using NaCl SecretBox and returns a Uint8List containing nonce[24] + cipherText[]. The 24 first bytes represent the nonce, and the rest of the buffer contains the cipher text.
encryptRawAsync(Uint8List buffer, String passphrase) Future<Uint8List>
Encrypts the given data using NaCl SecretBox and returns a Uint8List Future containing nonce[24] + cipherText[]. The 24 first bytes represent the nonce, and the rest of the buffer contains the cipher text.
encryptString(String message, String passphrase) String
Encrypts the given string using NaCl SecretBox and returns a Base64 string containing nonce[24] + cipherText[]. The 24 first bytes must contain the nonce, and the rest of the buffer needs to contain the cipher text.
encryptStringAsync(String message, String passphrase) Future<String>
Encrypts the given string using NaCl SecretBox and returns a Base64 string Future containing nonce[24] + cipherText[]. The 24 first bytes must contain the nonce, and the rest of the buffer needs to contain the cipher text.