# mechanismNameFromType function

String mechanismNameFromType(

1. ScramHashType type

)

## Implementation

    String mechanismNameFromType(ScramHashType type) {
      switch (type) {
        case ScramHashType.sha1:
          return scramSha1Mechanism;
        case ScramHashType.sha256:
          return scramSha256Mechanism;
        case ScramHashType.sha512:
          return scramSha512Mechanism;
      }
    }