fromValue static method

Argon2Version fromValue(
  1. int value
)

Gets the version from integer value

Implementation

static Argon2Version fromValue(int value) {
  switch (value) {
    case 0x10:
      return Argon2Version.v10;
    case 0x13:
      return Argon2Version.v13;
    default:
      throw ArgumentError('Unknown version');
  }
}