need one help what i cant solve it almost 2 weeks thanks
Well, at least we can try to help
Just tell us your problem
here python code i convert to swift from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA PUBLIC_KEY = b"""-----BEGIN PUBLIC KEY----- -----END PUBLIC KEY-----""" APIKEY = "4e5cc616f01f44bc99b762a8608fcd92" PROXY = "" USERNAME = "" PASSWORD = "" def btoa(s): return base64.b64encode(s).decode() def get_crypt_pass(password): public_key = RSA.importKey(PUBLIC_KEY) cipher = PKCS1_v1_5.new(public_key, None) return btoa(cipher.encrypt(password.encode())) try this code in swift https://gist.github.com/saroar/5dff14e38db05ff59e1ad5377f5b9696 but password not accept ?
please check me below thanks
give up 🙂
That's not the reason. To solve any problem you need 100% information. It is generally accepted that the more information the person asking the question gives, the less the person answering has to think about it. The clearer and more precise the question is posed, the more accurate and clear (and faster) the answer will be. In this case, you have provided approximately 5% of the required information. Like, here are the pieces of code, figure out for yourself what I wanted to do and what the problem is. Ok, you don't want to waste time explaining - and I don't want to waste time going into it. Nothing personal.
what i want mean by its simple who know more about crypto how its work there was two simple convert from RSA and use PKCS1_v1_5 you was try to favour i dont write give up nagative way hope you dont mind
Yeah! Use ChatGPT, dude! :)
Обсуждают сегодня