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 · 3 comments
Open

AAAAAAAAAAAAAAAAAAA = #243

KALIANS opened this issue Dec 12, 2022 · 3 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?

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

4 participants