Skip to content

Commit f9f5af3

Browse files
author
“Mehran
committed
Fixed Uppercase issues
1 parent b00fd08 commit f9f5af3

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class ViewController: BaseViewController {
6363
let plainText = "PlainText"
6464
let key = "key"
6565

66-
let encrypt = SecurityKit.StringEncryption(plainText: plainText, encryptionKey: key)
66+
let encrypt = SecurityKit.stringEncryption(plainText: plainText, encryptionKey: key)
6767

6868
print(encrypt)
6969

70-
let decrypt = SecurityKit.StringDecryption(cypherText: encrypt, decryptionKey: key)
70+
let decrypt = SecurityKit.stringDecryption(cypherText: encrypt, decryptionKey: key)
7171

7272
print(decrypt)
7373
}

SecurityKit/SecurityKit/SecurityKit.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ public class SecurityKit {
136136
# Example #
137137
```
138138
//
139-
SecurityKit.StringEncryption(plainText : "String", encryptionKey: "String")
139+
SecurityKit.stringEncryption(plainText : "String", encryptionKey: "String")
140140
```
141141
*/
142-
public static func StringEncryption(plainText : String, encryptionKey: String) -> [UInt8] {
142+
public static func stringEncryption(plainText : String, encryptionKey: String) -> [UInt8] {
143143
return XOREncryption.encryption(plainText: plainText, encryptionKey: encryptionKey)
144144
}
145145

@@ -156,10 +156,10 @@ public class SecurityKit {
156156
# Example #
157157
```
158158
//
159-
SecurityKit.StringDecryption(cypherText: [UInt8]?, decryptionKey : "String")
159+
SecurityKit.stringDecryption(cypherText: [UInt8]?, decryptionKey : "String")
160160
```
161161
*/
162-
public static func StringDecryption(cypherText: [UInt8]?, decryptionKey : String?) -> String {
162+
public static func stringDecryption(cypherText: [UInt8]?, decryptionKey : String?) -> String {
163163
return XOREncryption.decryption(cypherText: cypherText, decryptionKey: decryptionKey)
164164
}
165165
}

0 commit comments

Comments
 (0)