diff --git a/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala b/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala index 42723a5..28a09f0 100644 --- a/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala +++ b/src/main/scala/com/mesonomics/playhmacsignatures/SlackSignatureVerifyAction.scala @@ -13,14 +13,15 @@ import play.api.mvc.BodyParsers import scala.concurrent.ExecutionContext object SlackSignatureVerifyAction { - def convertBytesToHex(bytes: Seq[Byte]): String = { - val sb = new StringBuilder - for (b <- bytes) { - sb.append(String.format("%02x", Byte.box(b))) - } - sb.toString + def convertBytesToHex(bytes: Seq[Byte]): String = { + val sb = new StringBuilder + for (b <- bytes) { + sb.append(String.format("%02x", Byte.box(b))) } + sb.toString + } } + /** This class can be used to validate signatures in * [[https://api.slack.com/authentication/verifying-requests-from-slack#verifying-requests-from-slack-using-signing-secrets__a-recipe-for-security__step-by-step-walk-through-for-validating-a-request Slack requests]]. *