From f654c23d5682a8da1017223b2a0186edf67ccab8 Mon Sep 17 00:00:00 2001
From: Tamas Bolner <bolner@outlook.com>
Date: Sat, 16 Oct 2021 00:27:39 +0200
Subject: [PATCH] typo

---
 src/ServerChallenge.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ServerChallenge.php b/src/ServerChallenge.php
index 9198669..58b8c30 100644
--- a/src/ServerChallenge.php
+++ b/src/ServerChallenge.php
@@ -184,18 +184,18 @@ public function HashPassword(string $password, string $saltHashAlgo)
     {
         $supported = hash_algos();
         if (!in_array($this->passwordHashAlgo, $supported)) {
-            throw new MonetException("The password hash algorith '{$this->passwordHashAlgo}' which was requested "
+            throw new MonetException("The password hash algorithm '{$this->passwordHashAlgo}' which was requested "
                 ."by the server, is not supported by PHP.");
         }
 
         if (!in_array($saltHashAlgo, $supported)) {
-            throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
+            throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
                 ."in a constructor parameter of the 'Connection' class, is not supported by PHP. "
                 ."The following algorithms are supported by it: ".implode(', ', $supported));
         }
 
         if (!in_array($saltHashAlgo, $this->supportedSaltHashes)) {
-            throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
+            throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
                 ."in a constructor parameter of the 'Connection' class, is not supported by the server. "
                 ."The following algorithms are supported by it: ".implode(', ', $this->supportedSaltHashes));
         }