185 похожих чатов

Is anyone have good exprience with crypto ? https://github.com/apple/swift-crypto i

need one help what i cant solve it almost 2 weeks thanks

9 ответов

17 просмотров

Well, at least we can try to help

Just tell us your problem

Alexander Sherbakov
Well, at least we can try to help

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 ?

👨🏽‍💻 🔐🧑🏼‍🦱 Кхандокер
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.

Alexander Sherbakov
That's not the reason. To solve any problem you ne...

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

Похожие вопросы

Обсуждают сегодня

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Блин, интересно, кто-нибудь когда-нибудь переписывал какую-нибудь игру с x86 на arm? Вообще, такое возможно?
Alan 🔝 Бэброу
12
I just installed it but how do I use it?
Talula
12
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
здравствуйте, у меня есть число шестнадцаттиричное, FFFB например, это -5, как мне в консоль вывести -5? мой самописный atoi преобразовывает -5 в 65531
Maxim Of course
7
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
Всем привет! Нужен совет от опытных. Переношу свой проект с Делфи 10.2 Токио на Лазарус 3.2 установленный через инсталлятор fpcupdeluxe-x86_64-win64. При импортировании проект...
Дмитрий Завгородний
7
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Карта сайта