codecs library
Implementations of fast and error resilient codecs
Classes
- Base16Codec
- Base2Codec
- Base32Codec
- Base64Codec
- Base8Codec
- BigIntCodec
- BitDecoder
- BitEncoder
- CryptData
- The PHC string format data
- CryptDataBuilder
- Convenient builder for CryptData.
- CryptDecoder
- The decoder used by the CryptFormat codec
- CryptEncoder
- The encoder used by the CryptFormat codec
- CryptFormat
- Provides encoding and decoding of PHC string format data.
- HashlibConverter
- Base class for bit-wise encoder and decoder implementation
- IterableCodec
- Base class for encoding from and to 8-bit integer sequence
- UTF8Codec
Constants
- crypt → const CryptFormat
- An instance of CryptFormat for encoding and decoding hash algorithm output with PHC string format
Functions
-
fromBase32(
String input, {Base32Codec? codec, bool padding = true}) → Uint8List - Converts 5-bit Base-32 character sequence to 8-bit integer sequence.
-
fromBase64(
String input, {Base64Codec? codec, bool padding = true}) → Uint8List - Converts 6-bit Base-64 character sequence to 8-bit integer sequence.
-
fromBigInt(
BigInt input, {BigIntCodec? codec, bool msbFirst = false}) → Uint8List - Converts a BigInt to 8-bit integer sequence.
-
fromBinary(
String input, {Base2Codec codec = Base2Codec.standard}) → Uint8List - Converts 2-bit Base-2 character sequence to 8-bit integer sequence.
-
fromCrypt(
String input) → CryptData - Decodes a string to an hash algorithm config following PHC string format.
-
fromHex(
String input, {Base16Codec? codec}) → Uint8List - Converts 4-bit Base-16 character sequence to 8-bit integer sequence.
-
fromOctal(
String input, {Base8Codec codec = Base8Codec.standard}) → Uint8List - Converts 3-bit Base-8 character sequence to 8-bit integer sequence.
-
fromUtf8(
List< int> input, {UTF8Codec codec = UTF8Codec.standard}) → String - Converts 8-bit UTF-8 octet sequence to UTF-8 character code points.
-
toBase32(
List< int> input, {Base32Codec? codec, bool lower = false, bool padding = true}) → String - Converts 8-bit integer sequence to 5-bit Base-32 character sequence.
-
toBase64(
List< int> input, {Base64Codec? codec, bool url = false, bool padding = true}) → String - Converts 8-bit integer sequence to 6-bit Base-64 character sequence.
-
toBigInt(
Iterable< int> input, {BigIntCodec? codec, bool msbFirst = false}) → BigInt - Converts 8-bit integer sequence to BigInt.
-
toBinary(
List< int> input, {Base2Codec codec = Base2Codec.standard}) → String - Converts 8-bit integer sequence to 2-bit Base-2 character sequence.
-
toCrypt(
CryptData input) → String - Encodes a hash algorithm output to string following PHC string format.
-
toHex(
List< int> input, {Base16Codec? codec, bool upper = false}) → String - Converts 8-bit integer sequence to 4-bit Base-16 character sequence.
-
toOctal(
List< int> input, {Base8Codec codec = Base8Codec.standard}) → String - Converts 8-bit integer sequence to 3-bit Base-8 character sequence.
-
toUtf8(
String input, {UTF8Codec codec = UTF8Codec.standard}) → Uint8List - Converts UTF-8 character code points to 8-bit UTF-8 octet sequence.