RSA Encryption Decryption in Android

In RSA you should use the public key for encryption and the private key for decryption. Your sample code uses for encryption and decryption the public key – this can not work. Hence in the decryption part you should initialize the cipher this way: cipher1.init(Cipher.DECRYPT_MODE, privateKey); Furthermor your code has a second significant bug: You … Read more

Cracking short RSA keys

Your teacher gave you: Public Key: (10142789312725007, 5) which means n = 10142789312725007 e = 5 where n is the modulus and e is the public exponent. In addition, you’re given Private Key: (10142789312725007, 8114231289041741) meaning that d = 8114231289041741 where d is the decryption exponent that should remain secret. You can “break” RSA by … Read more

Setting up OpenSSH for Windows using public key authentication

Following are setup steps for OpenSSH shipped with Windows 10 v.1803 (April 2018 update. See comments to this post, it might not work with 1809). Server setup (elevated powershell): Install OpenSSH server: Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0. Start agent and sshd services: Start-Service ssh-agent; Start-Service sshd (this will generate host keys and default configuration automatically in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)