Fix LCECryptoKit methods
This commit is contained in:
@@ -31,11 +31,21 @@ public final class LCECrypto {
|
||||
self.hashKey = privateKey
|
||||
}
|
||||
|
||||
func encodeOTP(email: String, password: String) -> String? {
|
||||
func encodeTP(email: String, password: String) -> String? {
|
||||
return LCECryptoKit.encodeSeed(email: email, password: password)
|
||||
}
|
||||
|
||||
func decodeOTP(_ otpHash: String) -> String? {
|
||||
return LCECryptoKit.decodeSeed(otpKey: otpHash)
|
||||
}
|
||||
|
||||
// MARK: Need hashKey to decode
|
||||
|
||||
func encodeOTPWithKey(email: String, password: String) -> String? {
|
||||
return LCECryptoKit.encodeSeed(email: email, password: password, hashKey: self.hashKey)
|
||||
}
|
||||
|
||||
func decodeOTP(_ otpHash: String) -> Bool {
|
||||
func decodeOTPWithKey(_ otpHash: String) -> Bool {
|
||||
LCECryptoKit.decodeSeed(otpKey: otpHash, hashKey: self.hashKey)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user