skip to Main Content

ECIES encryption and EC key generation in Swift – Ios swift

Backend uses this java implementation for encrypting the data using public key(generated from iOS App in swift), Cipher iesCipher = Cipher.getInstance("ECIESwithAES-CBC"); byte[] derivation = Hex.decode(derivationString); byte[] encoding = Hex.decode(encodingString); byte[] nonce = Hex.decode(nonceString); IESParameterSpec params = new IESParameterSpec(derivation, encoding, 128,…

VIEW QUESTION

How to build a secure (wss://…) websocket server using Kotlin's ktor? – Nginx

I've found documentation for an insecure ktor websocket server (ws://...): https://ktor.io/docs/creating-web-socket-chat.html#creating-the-chat-client I've found documentation for a secure ktor http server (https://...) https://github.com/ktorio/ktor-documentation/tree/main/codeSnippets/snippets/ssl-embedded-server But I can't seem to find or figure out how to serve a secure ktor websocket server (wss://...)…

VIEW QUESTION

Android Studio – AES Encryption in Kotlin

The Android docs give the following snippet for how to encrypt a message in AES: val plaintext: ByteArray = ... val keygen = KeyGenerator.getInstance("AES") keygen.init(256) val key: SecretKey = keygen.generateKey() val cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING") cipher.init(Cipher.ENCRYPT_MODE, key) val ciphertext: ByteArray =…

VIEW QUESTION
Back To Top
Search