|
@@ -65,7 +65,7 @@ class NCEndToEndMetadata: NSObject {
|
|
|
}
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------
|
|
|
- // MARK: Encode / Decode JSON Metadata
|
|
|
+ // MARK: Encode JSON Metadata
|
|
|
// --------------------------------------------------------------------------------------------
|
|
|
|
|
|
func encoderMetadata(_ recordsE2eEncryption: [tableE2eEncryption], privateKey: String, serverUrl: String) -> String? {
|
|
@@ -138,6 +138,10 @@ class NCEndToEndMetadata: NSObject {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // --------------------------------------------------------------------------------------------
|
|
|
+ // MARK: Decode JSON Metadata
|
|
|
+ // --------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
func decoderMetadata(_ e2eMetaDataJSON: String, privateKey: String, serverUrl: String, account: String, urlBase: String, userId: String) -> Bool {
|
|
|
guard let data = e2eMetaDataJSON.data(using: .utf8) else { return false }
|
|
|
|