http://git.chat98.i2p/chat98/chat98/src/commit/358aa6038cb79ae451a8d6d1fae44ba32ac77741/src/main/kotlin/i2p/chat98/service/crypto/CryptoService.kt
AES _CBC _PKCS5PADDING , sharedSecret , messageBytes ) val encryptedB64 = Base64 . toBase64String ( encryptionResult . encryptedBytes ) return IrcMessage ( ircMessageType , mainPrivateKey . generatePublicKey ( ) , encryptionResult . nonce , encryptedB64 ) } /** * IrcMessage -> IrcEncryptedMessage, used for exchanging quantum keys before upgrading to a quantum-safe conversation. */ fun encryptIrcMessage ( ircMessage : IrcMessage , recipient : Buddy ) : IrcEncryptedMessage {...