Skip to content

Commit

Permalink
made hasher function public
Browse files Browse the repository at this point in the history
  • Loading branch information
kerimovscreations committed Mar 22, 2022
1 parent e32d46f commit 2760fb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.6.0 - 2022-03-23
### Changes
- Made hasher function public

## 3.4.0 - 2021-05-6
### Changes
- Fixed salt hex conversion
Expand Down
2 changes: 1 addition & 1 deletion Sources/Cryptor+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Cryptor
import Foundation

extension Digest {
static func hasher(_ algorithm: Algorithm) -> (Data) -> Data {
static public func hasher(_ algorithm: Algorithm) -> (Data) -> Data {
return { data in
let digest = Digest(using: algorithm)
_ = digest.update(data: data)
Expand Down

0 comments on commit 2760fb6

Please sign in to comment.