Skip to content

Commit

Permalink
fix #219
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Mar 13, 2024
1 parent af4b63a commit ee4cbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/CryptoSettingViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CryptoSettingViewModel: ViewModel, ViewModelType {
key=$(printf $key | xxd -ps -c 200)
iv=$(printf $iv | xxd -ps -c 200)
ciphertext=$(echo -n $json | openssl enc -aes-\(fields.algorithm.suffix(3))-\(fields.mode.lowercased()) -K $key \(iv.count > 0 ? "-iv $iv " : "")| base64)
ciphertext=$(echo -n $json | openssl enc -aes-\(fields.algorithm.suffix(3))-\(fields.mode.lowercased()) -K $key \(iv.count > 0 ? "-iv $iv " : "")| base64 -w 0)
# \(NSLocalizedString("consoleComment")) "\((try? AESCryptoModel(cryptoFields: fields).encrypt(text: "{\"body\": \"test\", \"sound\": \"birdsong\"}")) ?? "")"
echo $ciphertext
Expand Down

0 comments on commit ee4cbce

Please sign in to comment.