First 16 characters missing – Java AES CBC encryption and golang decryption

Issue I have used following code to encrypt and decrypt data in Java. Encryption and Decryption is working fine. import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; import java.security.SecureRandom; public class MainNew { public static void main(String[] args)

Continue reading

Use secp256k1 in Go

Issue I’m trying to use the elliptic curve secp256k1 in Go with the library “crypto/x509”. After the key pair generation, I obtain respectively the public key pubKey and the private key privKey. After that, I want to generate a certificate

Continue reading

ssh client to show server-supported algorithms

Issue In order to check that all the servers across a fleet aren’t supporting deprecated algorithms, I’m (programmatically) doing this: telnet localhost 22 Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. SSH-2.0-OpenSSH_8.0p1 Ubuntu-6build1 SSH-2.0-Censor-SSH2 4&m����&F �V��curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1Arsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519lchacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.comlchacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com�umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1�umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1none,zlib@openssh.comnone,zlib@openssh.comSSH-2.0-Censor-SSH2 Connection closed by

Continue reading