This lib provides you instagram password encryption (only ios/android auth)
Install this package with command go get -u github.com/Numenorean/IGPassword
It is located in all instagram endpoints ig-set-password-encryption-key-id: keyID ig-set-password-encryption-pub-key: rsaKey
package main
import (
"github.com/Numenorean/IGPassword"
"fmt"
)
func main() {
fmt.Println(igencryption.Encrypt("long key that starts from -----BEGIN PUBLIC KEY-----", "password", 136)) // keyID only as example
}