Sodium class

The core flutter_sodium API mapping libsodium function to Dart equivalents.

Constructors

Sodium()

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

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

cryptoAeadChacha20poly1305Abytes int
no setter
cryptoAeadChacha20poly1305Decrypt Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305DecryptDetached Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List mac, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305Encrypt Uint8List Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305EncryptDetached DetachedCipher Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305IetfAbytes int
no setter
cryptoAeadChacha20poly1305IetfDecrypt Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305IetfDecryptDetached Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List mac, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305IetfEncrypt Uint8List Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305IetfEncryptDetached DetachedCipher Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadChacha20poly1305IetfKeybytes int
no setter
cryptoAeadChacha20poly1305IetfKeygen Uint8List Function()
final
cryptoAeadChacha20poly1305IetfMessagebytesMax int
no setter
cryptoAeadChacha20poly1305IetfNpubbytes int
no setter
cryptoAeadChacha20poly1305IetfNsecbytes int
no setter
cryptoAeadChacha20poly1305Keybytes int
no setter
cryptoAeadChacha20poly1305Keygen Uint8List Function()
final
cryptoAeadChacha20poly1305MessagebytesMax int
no setter
cryptoAeadChacha20poly1305Npubbytes int
no setter
cryptoAeadChacha20poly1305Nsecbytes int
no setter
cryptoAeadXchacha20poly1305IetfAbytes int
no setter
cryptoAeadXchacha20poly1305IetfDecrypt Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadXchacha20poly1305IetfDecryptDetached Uint8List Function(Uint8List? nsec, Uint8List c, Uint8List mac, Uint8List? ad, Uint8List npub, Uint8List k)
final
cryptoAeadXchacha20poly1305IetfEncrypt Uint8List Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadXchacha20poly1305IetfEncryptDetached DetachedCipher Function(Uint8List m, Uint8List? ad, Uint8List? nsec, Uint8List npub, Uint8List k)
final
cryptoAeadXchacha20poly1305IetfKeybytes int
no setter
cryptoAeadXchacha20poly1305IetfKeygen Uint8List Function()
final
cryptoAeadXchacha20poly1305IetfMessagebytesMax int
no setter
cryptoAeadXchacha20poly1305IetfNpubbytes int
no setter
cryptoAeadXchacha20poly1305IetfNsecbytes int
no setter
cryptoAuthBytes int
no setter
cryptoAuthKeybytes int
no setter
cryptoAuthPrimitive String
no setter
cryptoBoxBeforenmbytes int
no setter
cryptoBoxMacbytes int
no setter
cryptoBoxMessagebytesMax int
no setter
cryptoBoxNoncebytes int
no setter
cryptoBoxPrimitive String
no setter
cryptoBoxPublickeybytes int
no setter
cryptoBoxSealbytes int
no setter
cryptoBoxSecretkeybytes int
no setter
cryptoBoxSeedbytes int
no setter
cryptoCoreHchacha20Constbytes int
no setter
cryptoCoreHchacha20Inputbytes int
no setter
cryptoCoreHchacha20Keybytes int
no setter
cryptoCoreHchacha20Outputbytes int
no setter
cryptoCoreHsalsa20Constbytes int
no setter
cryptoCoreHsalsa20Inputbytes int
no setter
cryptoCoreHsalsa20Keybytes int
no setter
cryptoCoreHsalsa20Outputbytes int
no setter
cryptoGenerichashBytes int
no setter
cryptoGenerichashBytesMax int
no setter
cryptoGenerichashBytesMin int
no setter
cryptoGenerichashKeybytes int
no setter
cryptoGenerichashKeybytesMax int
no setter
cryptoGenerichashKeybytesMin int
no setter
cryptoGenerichashPrimitive String
no setter
cryptoGenerichashStatebytes int
no setter
cryptoHashBytes int
no setter
cryptoHashPrimitive String
no setter
cryptoKdfBytesMax int
no setter
cryptoKdfBytesMin int
no setter
cryptoKdfContextbytes int
no setter
cryptoKdfKeybytes int
no setter
cryptoKdfPrimitive String
no setter
cryptoKxPrimitive String
no setter
cryptoKxPublickeybytes int
no setter
cryptoKxSecretkeybytes int
no setter
cryptoKxSeedbytes int
no setter
cryptoKxSessionkeybytes int
no setter
cryptoOnetimeauthBytes int
no setter
cryptoOnetimeauthKeybytes int
no setter
cryptoOnetimeauthPrimitive String
no setter
cryptoOnetimeauthStatebytes int
no setter
cryptoPwhashAlgArgon2i13 int
no setter
cryptoPwhashAlgArgon2id13 int
no setter
cryptoPwhashAlgDefault int
no setter
cryptoPwhashArgon2iMemlimitMax int
no setter
cryptoPwhashArgon2iMemlimitMin int
no setter
cryptoPwhashArgon2iOpslimitMax int
no setter
cryptoPwhashArgon2iOpslimitMin int
no setter
cryptoPwhashBytesMax int
no setter
cryptoPwhashBytesMin int
no setter
cryptoPwhashMemlimitInteractive int
no setter
cryptoPwhashMemlimitMax int
no setter
cryptoPwhashMemlimitMin int
no setter
cryptoPwhashMemlimitModerate int
no setter
cryptoPwhashMemlimitSensitive int
no setter
cryptoPwhashOpslimitInteractive int
no setter
cryptoPwhashOpslimitMax int
no setter
cryptoPwhashOpslimitMin int
no setter
cryptoPwhashOpslimitModerate int
no setter
cryptoPwhashOpslimitSensitive int
no setter
cryptoPwhashPasswdMax int
no setter
cryptoPwhashPasswdMin int
no setter
cryptoPwhashPrimitive String
no setter
cryptoPwhashSaltbytes int
no setter
cryptoPwhashStrbytes int
no setter
cryptoPwhashStrprefix String
no setter
cryptoScalarmultBytes int
no setter
cryptoScalarmultCurve25519Bytes int
no setter
cryptoScalarmultPrimitive String
no setter
cryptoScalarmultScalarbytes int
no setter
cryptoSecretboxKeybytes int
no setter
cryptoSecretboxMacbytes int
no setter
cryptoSecretboxMessagebytesMax int
no setter
cryptoSecretboxNoncebytes int
no setter
cryptoSecretboxPrimitive String
no setter
cryptoSecretstreamXchacha20poly1305Abytes int
no setter
cryptoSecretstreamXchacha20poly1305Headerbytes int
no setter
cryptoSecretstreamXchacha20poly1305Keybytes int
no setter
cryptoSecretstreamXchacha20poly1305MessagebytesMax int
no setter
cryptoSecretstreamXchacha20poly1305Statebytes int
no setter
cryptoSecretstreamXchacha20poly1305TagFinal int
no setter
cryptoSecretstreamXchacha20poly1305TagMessage int
no setter
cryptoSecretstreamXchacha20poly1305TagPush int
no setter
cryptoSecretstreamXchacha20poly1305TagRekey int
no setter
cryptoShorthashBytes int
no setter
cryptoShorthashKeybytes int
no setter
cryptoShorthashPrimitive String
no setter
cryptoSignBytes int
no setter
cryptoSignEd25519Publickeybytes int
no setter
cryptoSignEd25519Secretkeybytes int
no setter
cryptoSignMessagebytesMax int
no setter
cryptoSignPrimitive String
no setter
cryptoSignPublickeybytes int
no setter
cryptoSignSecretkeybytes int
no setter
cryptoSignSeedbytes int
no setter
cryptoSignStatebytes int
no setter
cryptoStreamKeybytes int
no setter
cryptoStreamMessagebytesMax int
no setter
cryptoStreamNoncebytes int
no setter
cryptoStreamPrimitive String
no setter
libraryMinimal bool
no setter
libraryVersionMajor int
no setter
libraryVersionMinor int
no setter
randombytesImplementationName String
no setter
randombytesSeedbytes int
no setter
runtimeHasAesni bool
no setter
runtimeHasAvx bool
no setter
runtimeHasAvx2 bool
no setter
runtimeHasAvx512f bool
no setter
runtimeHasNeon bool
no setter
runtimeHasPclmul bool
no setter
runtimeHasRdrand bool
no setter
runtimeHasSse2 bool
no setter
runtimeHasSse3 bool
no setter
runtimeHasSse41 bool
no setter
runtimeHasSsse3 bool
no setter
versionString String
no setter

Static Methods

base642bin(String b64, {String? ignore, int variant = base64VariantOriginal}) Uint8List
base64EncodedLen(int binlen, int variant) int
bin2base64(Uint8List bin, {int variant = base64VariantOriginal}) String
bin2hex(Uint8List bin) String
cryptoAuth(Uint8List i, Uint8List k) Uint8List
cryptoAuthKeygen() Uint8List
cryptoAuthVerify(Uint8List h, Uint8List i, Uint8List k) bool
cryptoBoxBeforenm(Uint8List pk, Uint8List sk) Uint8List
cryptoBoxDetached(Uint8List m, Uint8List n, Uint8List pk, Uint8List sk) DetachedCipher
cryptoBoxDetachedAfternm(Uint8List m, Uint8List n, Uint8List k) DetachedCipher
cryptoBoxEasy(Uint8List m, Uint8List n, Uint8List pk, Uint8List sk) Uint8List
cryptoBoxEasyAfternm(Uint8List m, Uint8List n, Uint8List k) Uint8List
cryptoBoxKeypair() KeyPair
cryptoBoxOpenDetached(Uint8List c, Uint8List mac, Uint8List n, Uint8List pk, Uint8List sk) Uint8List
cryptoBoxOpenDetachedAfternm(Uint8List c, Uint8List mac, Uint8List n, Uint8List k) Uint8List
cryptoBoxOpenEasy(Uint8List c, Uint8List n, Uint8List pk, Uint8List sk) Uint8List
cryptoBoxOpenEasyAfternm(Uint8List c, Uint8List n, Uint8List k) Uint8List
cryptoBoxSeal(Uint8List m, Uint8List pk) Uint8List
cryptoBoxSealOpen(Uint8List c, Uint8List pk, Uint8List sk) Uint8List
cryptoBoxSeedKeypair(Uint8List seed) KeyPair
cryptoCoreHchacha20(Uint8List i, Uint8List k, Uint8List? c) Uint8List
cryptoCoreHsalsa20(Uint8List i, Uint8List k, Uint8List? c) Uint8List
cryptoGenerichash(int outlen, Uint8List i, Uint8List? key) Uint8List
cryptoGenerichashFinal(Pointer<Uint8> state, int outlen) Uint8List
cryptoGenerichashInit(Uint8List? key, int outlen) Pointer<Uint8>
cryptoGenerichashKeygen() Uint8List
cryptoGenerichashUpdate(Pointer<Uint8> state, Uint8List i) → void
cryptoHash(Uint8List i) Uint8List
cryptoKdfDeriveFromKey(int subkeyLen, int subkeyId, Uint8List ctx, Uint8List key) Uint8List
cryptoKdfKeygen() Uint8List
cryptoKxClientSessionKeys(Uint8List clientPk, Uint8List clientSk, Uint8List serverPk) SessionKeys
cryptoKxKeypair() KeyPair
cryptoKxSeedKeypair(Uint8List seed) KeyPair
cryptoKxServerSessionKeys(Uint8List serverPk, Uint8List serverSk, Uint8List clientPk) SessionKeys
cryptoOnetimeauth(Uint8List i, Uint8List k) Uint8List
cryptoOnetimeauthFinal(Pointer<Uint8> state) Uint8List
cryptoOnetimeauthInit(Uint8List key) Pointer<Uint8>
cryptoOnetimeauthKeygen() Uint8List
cryptoOnetimeauthUpdate(Pointer<Uint8> state, Uint8List i) → void
cryptoOnetimeauthVerify(Uint8List h, Uint8List i, Uint8List k) bool
cryptoPwhash(int outlen, Uint8List passwd, Uint8List salt, int opslimit, int memlimit, int alg) Uint8List
cryptoPwhashStr(Uint8List passwd, int opslimit, int memlimit) Uint8List
cryptoPwhashStrAlg(Uint8List passwd, int opslimit, int memlimit, int alg) Uint8List
cryptoPwhashStrNeedsRehash(Uint8List str, int opslimit, int memlimit) int
cryptoPwhashStrVerify(Uint8List str, Uint8List passwd) int
cryptoScalarmult(Uint8List n, Uint8List p) Uint8List
cryptoScalarmultBase(Uint8List n) Uint8List
cryptoSecretboxDetached(Uint8List m, Uint8List n, Uint8List k) DetachedCipher
cryptoSecretboxEasy(Uint8List m, Uint8List n, Uint8List k) Uint8List
cryptoSecretboxKeygen() Uint8List
cryptoSecretboxOpenDetached(Uint8List c, Uint8List mac, Uint8List n, Uint8List k) Uint8List
cryptoSecretboxOpenEasy(Uint8List c, Uint8List n, Uint8List k) Uint8List
cryptoSecretstreamXchacha20poly1305InitPull(Uint8List header, Uint8List k) Pointer<Uint8>
cryptoSecretstreamXchacha20poly1305InitPush(Uint8List key) → InitPushResult
cryptoSecretstreamXchacha20poly1305Keygen() Uint8List
cryptoSecretstreamXchacha20poly1305Pull(Pointer<Uint8> state, Uint8List c, Uint8List? ad) → PullResult
cryptoSecretstreamXchacha20poly1305Push(Pointer<Uint8> state, Uint8List m, Uint8List? ad, int tag) Uint8List
cryptoSecretstreamXchacha20poly1305Rekey(Pointer<Uint8> state) → void
cryptoShorthash(Uint8List i, Uint8List k) Uint8List
cryptoShorthashKeygen() Uint8List
cryptoSign(Uint8List m, Uint8List sk) Uint8List
cryptoSignDetached(Uint8List m, Uint8List sk) Uint8List
cryptoSignEd25519PkToCurve25519(Uint8List ed25519Pk) Uint8List
cryptoSignEd25519SkToCurve25519(Uint8List ed25519Sk) Uint8List
cryptoSignEd25519SkToPk(Uint8List sk) Uint8List
cryptoSignEd25519SkToSeed(Uint8List sk) Uint8List
cryptoSignFinalCreate(Pointer<Uint8> state, Uint8List sk) Uint8List
cryptoSignFinalVerify(Pointer<Uint8> state, Uint8List sig, Uint8List pk) int
cryptoSignInit() Pointer<Uint8>
cryptoSignKeypair() KeyPair
cryptoSignOpen(Uint8List sm, Uint8List pk) Uint8List
cryptoSignSeedKeypair(Uint8List seed) KeyPair
cryptoSignUpdate(Pointer<Uint8> state, Uint8List m) → void
cryptoSignVerifyDetached(Uint8List sig, Uint8List m, Uint8List pk) int
cryptoStream(int clen, Uint8List n, Uint8List k) Uint8List
cryptoStreamKeygen() Uint8List
cryptoStreamXor(Uint8List m, Uint8List n, Uint8List k) Uint8List
hex2bin(String hex, {String? ignore = ': '}) Uint8List
init() → void
memcmp(Uint8List b1, Uint8List b2) bool
pad(Uint8List buf, int blockSize) Uint8List
randombytesBuf(int size) Uint8List
randombytesBufDeterministic(int size, Uint8List seed) Uint8List
randombytesClose() → void
randombytesRandom() int
randombytesStir() → void
randombytesUniform(int upperBound) int
unpad(Uint8List buf, int blockSize) Uint8List