⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgp-pubkey-encrypt.out

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 OUT
字号:
---- PGP Public Key Encryption---- successful encrypt/decryptselect pgp_pub_decrypt(	pgp_pub_encrypt('Secret msg', dearmor(pubkey)),	dearmor(seckey))from keytbl where keytbl.id=1; pgp_pub_decrypt ----------------- Secret msg(1 row)select pgp_pub_decrypt(		pgp_pub_encrypt('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=2; pgp_pub_decrypt ----------------- Secret msg(1 row)select pgp_pub_decrypt(		pgp_pub_encrypt('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=3; pgp_pub_decrypt ----------------- Secret msg(1 row)select pgp_pub_decrypt(		pgp_pub_encrypt('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=6; pgp_pub_decrypt ----------------- Secret msg(1 row)-- try with rsa-sign onlyselect pgp_pub_decrypt(		pgp_pub_encrypt('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=4;ERROR:  No encryption key found-- try with secret keyselect pgp_pub_decrypt(		pgp_pub_encrypt('Secret msg', dearmor(seckey)),		dearmor(seckey))from keytbl where keytbl.id=1;ERROR:  Refusing to encrypt with secret key-- does text-to-bytea worksselect pgp_pub_decrypt_bytea(		pgp_pub_encrypt('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=1; pgp_pub_decrypt_bytea ----------------------- Secret msg(1 row)-- and bytea-to-text?select pgp_pub_decrypt(		pgp_pub_encrypt_bytea('Secret msg', dearmor(pubkey)),		dearmor(seckey))from keytbl where keytbl.id=1;ERROR:  Not text data

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -