updates onepass

This commit is contained in:
2024-09-28 22:41:09 -07:00
parent 98663cbccd
commit 36363c36e0
5 changed files with 1 additions and 7 deletions

7
onepass/cypher Normal file
View File

@@ -0,0 +1,7 @@
-----BEGIN PGP MESSAGE-----
jA0ECQMI8gk49OiulSj/0l4B6rnXC/HRDlH26B+JaFmIL3RL1qUK0rOq8azacs3r
NtwBMK9wW1mxnd/hwM+BXgxELogEoYkNKwYJ5IO6HSQCgoGXVJn+mIqGZpaKqXo+
p6dsIeVmz7FPQhsmM5c3
=MuyF
-----END PGP MESSAGE-----

1
onepass/get.sh Normal file
View File

@@ -0,0 +1 @@
gpg --decrypt cypher

View File

@@ -0,0 +1,5 @@
### OnePassword
sudo rpm --import https://downloads.1password.com/linux/keys/1password.asc
sudo sh -c 'echo -e "[1password]\nname=1Password Stable Channel\nbaseurl=https://downloads.1password.com/linux/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=\"https://downloads.1password.com/linux/keys/1password.asc\"" > /etc/yum.repos.d/1password.repo'
sudo dnf check-update -y 1password-cli && sudo dnf install 1password-cli
export OPENAI_API_KEY=$(op read op://v7by4moxpzgsmlszn43jvwfzsa/ChatGPT.nvim/credential)

2
onepass/save.sh Normal file
View File

@@ -0,0 +1,2 @@
read -p 'Enter key to encrypt:' key
echo "${key}" | gpg --cipher-algo AES256 --symmetric --armor >cypher