Your OpenSSH Private Key looks like this
-----BEGIN OPENSSH PRIVATE KEY-----
b34ahC
-----END OPENSSH PRIVATE KEY-----
First, backup your OpenSSH Private Key
$ cp server_ssh.key server_ssh.key.backup| // luhn's algorithm | |
| // https://en.wikipedia.org/wiki/Luhn_algorithm | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| ) |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "math" | |
| ) | |
| // K K-factor | |
| const K = 30 |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Queue[T any] struct { | |
| elements []T | |
| size uint | |
| rear uint |
Your OpenSSH Private Key looks like this
-----BEGIN OPENSSH PRIVATE KEY-----
b34ahC
-----END OPENSSH PRIVATE KEY-----
First, backup your OpenSSH Private Key
$ cp server_ssh.key server_ssh.key.backup| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| // α(radians) = α(degrees) × π / 180° | |
| func DegToRad(deg float64) float64 { | |
| return deg * (math.Pi / 180) |
| package main | |
| import ( | |
| "fmt" | |
| "unsafe" | |
| ) | |
| type sample struct { | |
| a int | |
| b string |
The GPG key (means: Gnu Privacy Guard, aka GnuPG) is a free software which provides cryptographic privacy and authentication.
It allow users to communicate securely using public-key cryptography.
All packages are signed with a pair of keys consisting of a private key and a public key, by the package maintainer.
A user’s private key is kept secret and the public key may be given to anyone the user wants to communicate.
| let arr = []; | |
| for (let i = 0; i < 1000000; i++) { | |
| arr.push(i); | |
| } | |
| let arr2 = []; | |
| // Something else here that changes arr2: | |
| arr2.push(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); |
generate private key:
openssl genrsa -out private_key.pem 4096generate public key:
openssl rsa -pubout -in private_key.pem -out public_key.pem| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| tick := time.Tick(100 * time.Millisecond) | |