Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAAAAAAAAAAAAAAAAAA = #243

Open
KALIANS opened this issue Dec 12, 2022 · 10 comments
Open

AAAAAAAAAAAAAAAAAAA = #243

KALIANS opened this issue Dec 12, 2022 · 10 comments

Comments

@KALIANS
Copy link

KALIANS commented Dec 12, 2022

do {
let publicKey = try PublicKey(pemNamed: "public")

let str = "Clear String"
let clear = try ClearMessage(string: str, using: .utf8)
let encrypted = try clear.encrypted(with: publicKey, padding: .PKCS1)

let data = encencrypted.data
print(data)

let base64String = encrypted.base64String
print(base64String)

} catch {
print(error)
}

I use public key encryption, The result is "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ="
Good depressed, excuse me have a solution?

@shls77cxl
Copy link

I meet this problem

@Gdmec07140507
Copy link

同样的问题,你解决了吗

@helloimrachael
Copy link

I have this problem too, any solution?

@KALIANS
Copy link
Author

KALIANS commented May 29, 2024

My solution: Replace the framework... hahaha

@KALIANS
Copy link
Author

KALIANS commented May 29, 2024

Replace the framework

Replace the framework

@KALIANS
Copy link
Author

KALIANS commented May 29, 2024

同样的问题,你解决了吗

换掉吧兄弟

@shls77cxl
Copy link

换掉

@qiuseruxin
Copy link

同样的问题,你解决了吗

换掉吧兄弟

换哪个库好用啊 老铁

@qiuseruxin
Copy link

换掉

换哪个库好用啊 兄弟

@qiuseruxin
Copy link

I have this problem too, any solution?

i update version to 1.7.0 it's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants